netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Subject: [PATCH 0/4] libnetfilter_conntrack: connlabel support
Date: Wed, 23 Jan 2013 23:38:17 +0100	[thread overview]
Message-ID: <1358980701-3747-1-git-send-email-fw@strlen.de> (raw)

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

             reply	other threads:[~2013-01-23 22:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23 22:38 Florian Westphal [this message]
2013-01-23 22:38 ` [PATCH 1/4] api: add nfct_bitmask object Florian Westphal
2013-01-23 22:38 ` [PATCH 2/4] api: add connlabel api and attribute Florian Westphal
2013-02-02 20:48   ` Florian Westphal
2013-02-03  9:59     ` Pablo Neira Ayuso
2013-02-03 12:02       ` Florian Westphal
2013-01-23 22:38 ` [PATCH 3/4] examples: add connlabel dump/set/clear demo programs Florian Westphal
2013-01-23 22:38 ` [PATCH 4/4] api: add CTA_LABEL_MASK attribute handling 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=1358980701-3747-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).