Introduce CTA_LABELS attribute to send a bit-vector of currently active labels to userspace. Future patch will permit userspace to also set/delete active labels.
Showing the changes to include/uapi/linux (2 of 4 files). Show all
Unified · Split
| @@ -101,6 +101,7 @@ enum ip_conntrack_events { · 100 unmodified lines | |||
| 101 | IPCT_MARK, /* new mark has been set */ | 101 | IPCT_MARK, /* new mark has been set */ |
| 102 | IPCT_NATSEQADJ, /* NAT is doing sequence adjustment */ | 102 | IPCT_NATSEQADJ, /* NAT is doing sequence adjustment */ |
| 103 | IPCT_SECMARK, /* new security mark has been set */ | 103 | IPCT_SECMARK, /* new security mark has been set */ |
| 104 | IPCT_LABEL, /* new connlabel has been set */ | ||
| 104 | }; | 105 | }; |
| 105 | 106 | ||
| 106 | enum ip_conntrack_expect_events { | 107 | enum ip_conntrack_expect_events { |
| @@ -49,6 +49,7 @@ enum ctattr_type { · 48 unmodified lines | |||
| 49 | CTA_SECCTX, | 49 | CTA_SECCTX, |
| 50 | CTA_TIMESTAMP, | 50 | CTA_TIMESTAMP, |
| 51 | CTA_MARK_MASK, | 51 | CTA_MARK_MASK, |
| 52 | CTA_LABELS, | ||
| 52 | __CTA_MAX | 53 | __CTA_MAX |
| 53 | }; | 54 | }; |
| 54 | #define CTA_MAX (__CTA_MAX - 1) | 55 | #define CTA_MAX (__CTA_MAX - 1) |