From: Emmanuel Guiton <emmanuel@netlab.hut.fi>
To: netfilter <netfilter@lists.netfilter.org>
Subject: How do I use ip_conntrack_destroyed?
Date: Wed, 03 Dec 2003 12:17:35 +0200 [thread overview]
Message-ID: <3FCDB83F.3010703@netlab.hut.fi> (raw)
Hei!
I am writing a new target module which needs to be aware about the
number of conntracks that are currently known for a particular
destination. Thus, to make my counter I wish to detect when a conntrack
is destroyed. I have noticed the following in ip_conntrack.h :
/* Call me when a conntrack is destroyed. */
extern void (*ip_conntrack_destroyed)(struct ip_conntrack *conntrack);
So I guess it particularly fits with my needs. But what about using it?
Is it that I have to write something like:
ip_conntrack_destroyed = &my_counter_function
in my ipt_xxxx_target function and then do my stuff in my_counter_funtcion?
Does it work like this?
Emmanuel
reply other threads:[~2003-12-03 10:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3FCDB83F.3010703@netlab.hut.fi \
--to=emmanuel@netlab.hut.fi \
--cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox