libnetfilter_conntrack: connlabel support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | api: add nfct_bitmask objectinclude/ include/ include/ +2 more | +195 | 0 replies | |
| 2/4 | api: add connlabel api and attributeinclude/ include/ include/ +14 more | +513 | 3 replies | |
| 3/4 | examples: add connlabel dump/set/clear demo programsexamples/ examples/ examples/ | +295 | 0 replies | |
| 4/4 | api: add CTA_LABEL_MASK attribute handlingexamples/ include/ include/ +6 more | +48 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] libnetfilter_conntrack: connlabel support
The following four patches add support for the connlabel extension to libnetfilter_conntrack, i.e. support for accessing/changing labels via ctnetlink from userspace.
If there are no objections I'll push these changes soon.
I only wired CTA_LABELS up with the (newer) libmnl-based API.
Please let me know if there are any remaining issues.
summary of changes:
Florian Westphal (4):
api: add nfct_bitmask object
api: add connlabel api and attribute
examples: add connlabel dump/set/clear demo programs
api: add CTA_LABEL_MASK attribute handling
examples/Makefile.am | 10 + examples/nfct-mnl-dump-labels.c | 103 +++++++++ examples/nfct-mnl-set-label.c | 190 +++++++++++++++ include/internal/bitops.h | 2 + include/internal/object.h | 13 + include/internal/prototypes.h | 9 + .../libnetfilter_conntrack.h | 22 ++ .../linux_nfnetlink_conntrack.h | 2 + qa/Makefile.am | 5 +- qa/qa-connlabel.conf | 11 + qa/test_api.c | 74 ++++++- qa/test_connlabel.c | 70 ++++++ src/conntrack/Makefile.am | 1 + src/conntrack/api.c | 184 +++++++++++++++ src/conntrack/build_mnl.c | 18 ++ src/conntrack/copy.c | 32 +++- src/conntrack/getter.c | 12 + src/conntrack/labels.c | 243 ++++++++++++++++++++ src/conntrack/parse.c | 1 + src/conntrack/parse_mnl.c | 26 ++ src/conntrack/setter.c | 23 ++ 21 files changed, 1046 insertions(+), 5 deletions(-) create mode 100644 examples/nfct-mnl-dump-labels.c create mode 100644 examples/nfct-mnl-set-label.c create mode 100644 qa/qa-connlabel.conf create mode 100644 qa/test_connlabel.c create mode 100644 src/conntrack/labels.c