From: Philip Craig <philipc@snapgear.com>
To: Netfilter Developer Mailing List <netfilter-devel@lists.netfilter.org>
Subject: [PATCH][CTNETLINK] Include the id in conntrack netlink events.
Date: Tue, 14 Aug 2007 15:07:56 +1000 [thread overview]
Message-ID: <46C138AC.1000106@snapgear.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 126 bytes --]
I need the id in ctnetlink events for my application, so here's a
patch to add it in case this wasn't left out intentionally.
[-- Attachment #2: ctnl-event-id.patch --]
[-- Type: text/x-diff, Size: 576 bytes --]
Include the id in conntrack netlink events.
Signed-off-by: Philip Craig <philipc@snapgear.com>
--- linux-2.6.x/net/netfilter/nf_conntrack_netlink.c 9 Jul 2007 04:54:43 -0000
+++ linux-2.6.x/net/netfilter/nf_conntrack_netlink.c 14 Aug 2007 04:51:22 -0000
@@ -362,6 +362,9 @@ static int ctnetlink_conntrack_event(str
nfmsg->version = NFNETLINK_V0;
nfmsg->res_id = 0;
+ if (ctnetlink_dump_id(skb, ct) < 0)
+ goto nfattr_failure;
+
nest_parms = NFA_NEST(skb, CTA_TUPLE_ORIG);
if (ctnetlink_dump_tuples(skb, tuple(ct, IP_CT_DIR_ORIGINAL)) < 0)
goto nfattr_failure;
next reply other threads:[~2007-08-14 5:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-14 5:07 Philip Craig [this message]
2007-08-14 6:01 ` [PATCH][CTNETLINK] Include the id in conntrack netlink events Patrick McHardy
[not found] ` <46C14B05.2000200@snapgear.com>
2007-08-14 6:34 ` Patrick McHardy
2007-08-14 7:03 ` Philip Craig
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=46C138AC.1000106@snapgear.com \
--to=philipc@snapgear.com \
--cc=netfilter-devel@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.