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
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
106enum ip_conntrack_expect_events {107enum ip_conntrack_expect_events {
include/uapi/linux/netfilter/nfnetlink_conntrack.h+1−0
@@ -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_MAX53 __CTA_MAX
53};54};
54#define CTA_MAX (__CTA_MAX - 1)55#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