From: Florian Westphal <fw@strlen.de>
To: netfilter-devel <netfilter-devel@vger.kernel.org>
Subject: [PATCH 0/3] libnetfilter_conntrack: add connlabel support
Date: Thu, 15 Nov 2012 16:50:08 +0100 [thread overview]
Message-ID: <1352994611-3707-1-git-send-email-fw@strlen.de> (raw)
The following three patches add support for the planned
connlabel extension to libnetfilter_conntrack.
I've tried to add Pablos feedback/ideas, thus:
- a new nfct_bitmask object is added, plus
interfaces to test/set such bits
- 2nd patch adds functions to create/inspect a
name <-> bit mapping table
- setting/retrieving the connlabels is done
with the existing nfct_get/set_attr interface, so
no new interface for that.
Caveats:
- I only wired CTA_LABELS up with the libmnl-based API
- I only made a very brief test of this code (using
the example programs).
Please let me know if there are any remaining issues
with the chosen approach.
summary of changes:
examples/Makefile.am | 10
examples/nfct-mnl-dump-labels.c | 103 +++++
examples/nfct-mnl-set-label.c | 170 +++++++++
include/internal/bitops.h | 2
include/internal/object.h | 12
include/internal/prototypes.h | 9
include/libnetfilter_conntrack/libnetfilter_conntrack.h | 20 +
include/libnetfilter_conntrack/linux_nfnetlink_conntrack.h | 1
src/conntrack/Makefile.am | 1
src/conntrack/api.c | 164 ++++++++
src/conntrack/build_mnl.c | 12
src/conntrack/getter.c | 6
src/conntrack/labels.c | 239 +++++++++++++
src/conntrack/parse.c | 1
src/conntrack/parse_mnl.c | 25 +
src/conntrack/setter.c | 12
16 files changed, 787 insertions(+)
next reply other threads:[~2012-11-15 15:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 15:50 Florian Westphal [this message]
2012-11-15 15:50 ` [PATCH 1/3] api: add nfct_bitmask object Florian Westphal
2012-11-15 15:50 ` [PATCH 2/3] api: add connlabel api and attribute Florian Westphal
2012-11-15 21:07 ` Florian Westphal
2012-11-15 15:50 ` [PATCH 3/3] examples: add connlabel dump/set/clear demo programs Florian Westphal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352994611-3707-1-git-send-email-fw@strlen.de \
--to=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).