All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Ezust <ezust@presinet.com>
To: netfilter-devel@lists.netfilter.org
Cc: Thomas Mader <thezema@gmail.com>,
	Pablo Neira Ayuso <pablo@netfilter.org>
Subject: Re: remove connections notification by conntrack?
Date: Mon, 25 Sep 2006 10:12:14 -0700	[thread overview]
Message-ID: <200609251012.15023.ezust@presinet.com> (raw)
In-Reply-To: <200609231123.09148.thezema@gmail.com>

Hi - i'm rather new to this list and trying to learn as much as I can about 
this API. I see that for this particular function, there are no API docs. You 
make reference to "unofficial API docs" on a website, but shouldn't there be 
actual proper doc comments before the function? i.e.

/** @param  this - a reference to a notifier block, which will be used for ???
     @param events - a bitmask - please see ifnetlink.h for the possible 
values
     @param ptr - a pointer to a struct ip_conntrack for the purposes of ???
     @return it seems to return NOTIFY_DONE under every possible exec path.
*/
static int ctnetlink_conntrack_event(struct notifier_block *this,
                                     unsigned long events, void *ptr)




On Saturday 23 September 2006 02:23, Thomas Mader wrote:
> > Use the event API, do not forget to enable it (it's still marked as
> > experimental): have a look at ctnetlink_conntrack_event inside
> > ip_conntrack_netlink.c, that will help I think.
> >
> > Use the unsigned long parameter of your notify function above and wait
> > for the event IPCT_DESTROY.
>
> Now it looks like this:
>
> int ipaddr_conntrack_event(struct notifier_block *this, unsigned long
> events, void *ptr) {
> 	struct ip_conntrack *ct = (struct ip_conntrack *)ptr;
>
> 	if (events == IPCT_DESTROY) {
> 		printk("We have been notified that connection %d was deleted!\n",
> ct->id); }
>
> 	return 0;
> }

      parent reply	other threads:[~2006-09-25 17:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-22 11:59 remove connections notification by conntrack? Thomas Mader
2006-09-22 12:58 ` Pablo Neira Ayuso
2006-09-22 13:19   ` Thomas Mader
2006-09-22 15:00     ` Pablo Neira Ayuso
2006-09-23  9:23       ` Thomas Mader
2006-09-24  3:10         ` Pablo Neira Ayuso
2006-09-24  9:51           ` Thomas Mader
2006-09-24 15:34             ` Pablo Neira Ayuso
2006-10-15 13:01               ` Thomas Mader
2006-10-15 16:11                 ` Pablo Neira Ayuso
2006-10-15 17:03                   ` Thomas Mader
2006-09-25 17:12         ` Alan Ezust [this message]

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=200609251012.15023.ezust@presinet.com \
    --to=ezust@presinet.com \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=pablo@netfilter.org \
    --cc=thezema@gmail.com \
    /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.