All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarek Poplawski <jarkao2@o2.pl>
To: netfilter-devel@lists.netfilter.org
Subject: Re: adding data fields to netfilter_conntrack / conntrack events
Date: Wed, 23 Aug 2006 14:47:06 +0200	[thread overview]
Message-ID: <echin1$ark$1@sea.gmane.org> (raw)
In-Reply-To: <34ABBC54-DD57-407D-86CF-C4FB5FB24AEA@presinet.com>

On 23-08-2006 00:41, Stuart Zilm wrote:
> I'm trying to add some more data to that which gets passed across the 
> netlink socket for conntrack events, but can't seem to get the data from 
> the kernel to arrive in userspace.
> 
> I've added the following to net/ipv4/netfilter/ip_conntrack_netlink.c:
> 
> static inline int
> ctnetlink_dump_foo(struct sk_buff *skb, const struct ip_conntrack *ct)
> {
>     char dummy[sizeof(struct timeval)] = {0xde, 0xad, 0xde, 0xad, 0xde, 
> 0xad, 0xde, 0xad};
> 
>     NFA_PUT(skb, CTA_FOO, sizeof(struct timeval), dummy);
>     
>     return 0;
> 
> nfattr_failure:
>         printk("<6>ctnetlink_dump_foo: nfattr_failure\n");
>         return -1;
> }
> 
> // note that CTA_FOO = 13

I didn't check this but: did you see this change status 
function's processing with CTA_NAT_DST (13)?

Jarek P.

  reply	other threads:[~2006-08-23 12:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-22 22:41 adding data fields to netfilter_conntrack / conntrack events Stuart Zilm
2006-08-23 12:47 ` Jarek Poplawski [this message]
2006-08-23 23:39   ` Stuart Zilm
2006-08-24 10:34     ` Jarek Poplawski

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='echin1$ark$1@sea.gmane.org' \
    --to=jarkao2@o2.pl \
    --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.