History

netfilter: ctnetlink: deliver labels to userspace

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.

Florian Westphal committed 13 years ago

Commit 0ceabd81 parent c539f014 files · +44 −1Browse files

Showing the changes to include/uapi (2 of 4 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/netfilter/nf_conntrack_common.h +1 −0
  2. include/uapi/linux/netfilter/nfnetlink_conntrack.h +1 −0
include/uapi/linux/netfilter/nf_conntrack_common.h+1−0
@@ -101,6 +101,7 @@ enum ip_conntrack_events { · 100 unmodified lines
101101 IPCT_MARK, /* new mark has been set */
102102 IPCT_NATSEQADJ, /* NAT is doing sequence adjustment */
103103 IPCT_SECMARK, /* new security mark has been set */
104+ IPCT_LABEL, /* new connlabel has been set */
104105 };
105106
106107 enum ip_conntrack_expect_events {
include/uapi/linux/netfilter/nfnetlink_conntrack.h+1−0
@@ -49,6 +49,7 @@ enum ctattr_type { · 48 unmodified lines
4949 CTA_SECCTX,
5050 CTA_TIMESTAMP,
5151 CTA_MARK_MASK,
52+ CTA_LABELS,
5253 __CTA_MAX
5354 };
5455 #define CTA_MAX (__CTA_MAX - 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t