All of lore.kernel.org
 help / color / mirror / Atom feed
* How do I use ip_conntrack_destroyed?
@ 2003-12-03 12:05 Emmanuel Guiton
  2003-12-03 14:10 ` KOVACS Krisztian
  2003-12-03 21:57 ` Henrik Nordstrom
  0 siblings, 2 replies; 10+ messages in thread
From: Emmanuel Guiton @ 2003-12-03 12:05 UTC (permalink / raw)
  To: netfilter-devel

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?

Does it work so 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_function?

Can anyone confirm/invalidate this, please?

             Emmanuel

^ permalink raw reply	[flat|nested] 10+ messages in thread
* How do I use ip_conntrack_destroyed?
@ 2003-12-03 10:17 Emmanuel Guiton
  0 siblings, 0 replies; 10+ messages in thread
From: Emmanuel Guiton @ 2003-12-03 10:17 UTC (permalink / raw)
  To: netfilter


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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-12-05 15:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-03 12:05 How do I use ip_conntrack_destroyed? Emmanuel Guiton
2003-12-03 14:10 ` KOVACS Krisztian
2003-12-03 21:57 ` Henrik Nordstrom
2003-12-04  7:58   ` KOVACS Krisztian
2003-12-04 14:14     ` Emmanuel Guiton
2003-12-04 15:10       ` KOVACS Krisztian
2003-12-04 15:32         ` Emmanuel Guiton
2003-12-05 14:57         ` Emmanuel Guiton
2003-12-05 15:56           ` How do I use ip_conntrack_destroyed? [previous message erratum] Emmanuel Guiton
  -- strict thread matches above, loose matches on Subject: below --
2003-12-03 10:17 How do I use ip_conntrack_destroyed? Emmanuel Guiton

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.