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 | 101 | IPCT_MARK, /* new mark has been set */ |
| 102 | 102 | IPCT_NATSEQADJ, /* NAT is doing sequence adjustment */ |
| 103 | 103 | IPCT_SECMARK, /* new security mark has been set */ |
| 104 | + IPCT_LABEL, /* new connlabel has been set */ | |
| 104 | 105 | }; |
| 105 | 106 | |
| 106 | 107 | enum ip_conntrack_expect_events { |
| @@ -49,6 +49,7 @@ enum ctattr_type { · 48 unmodified lines | ||
| 49 | 49 | CTA_SECCTX, |
| 50 | 50 | CTA_TIMESTAMP, |
| 51 | 51 | CTA_MARK_MASK, |
| 52 | + CTA_LABELS, | |
| 52 | 53 | __CTA_MAX |
| 53 | 54 | }; |
| 54 | 55 | #define CTA_MAX (__CTA_MAX - 1) |