* handling the termination of 'expected' connection
@ 2006-01-31 16:34 iler_ml
2006-02-13 13:54 ` Yasuyuki KOZAKAI
0 siblings, 1 reply; 2+ messages in thread
From: iler_ml @ 2006-01-31 16:34 UTC (permalink / raw)
To: netfilter-devel
Hello,
I am making the conntrack module similar to ip_conntrack_ftp.c,
but additionally I need to track the termination (or expiry) of
the 'expected' connection. Thus I need a callback from
'ip_conntrack_core.c' when the 'expected' connection is terminated
or expired. I think I need to patch 'ip_conntrack_core.c' for that ?
Which points in 'ip_conntrack_core.c' are the right points to hook
for such event ?
I though I would patch 'ip_conntrack_core.c' to call my callback when
struct ip_conntrack_core.c is deallocated. Does this sound right ?
Yakov Lerner
--
iler_ml@fastmail.fm
--
http://www.fastmail.fm - The way an email service should be
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: handling the termination of 'expected' connection
2006-01-31 16:34 handling the termination of 'expected' connection iler_ml
@ 2006-02-13 13:54 ` Yasuyuki KOZAKAI
0 siblings, 0 replies; 2+ messages in thread
From: Yasuyuki KOZAKAI @ 2006-02-13 13:54 UTC (permalink / raw)
To: iler_ml; +Cc: netfilter-devel
Hi,
From: iler_ml@fastmail.fm
Date: Tue, 31 Jan 2006 08:34:03 -0800
> Hello,
>
> I am making the conntrack module similar to ip_conntrack_ftp.c,
> but additionally I need to track the termination (or expiry) of
> the 'expected' connection. Thus I need a callback from
> 'ip_conntrack_core.c' when the 'expected' connection is terminated
> or expired. I think I need to patch 'ip_conntrack_core.c' for that ?
>
> Which points in 'ip_conntrack_core.c' are the right points to hook
> for such event ?
>
> I though I would patch 'ip_conntrack_core.c' to call my callback when
> struct ip_conntrack_core.c is deallocated. Does this sound right ?
expectation_timed_out() is called when expectation timer is expired.
But it's too hard to take care of the case that expectations are destroyed
by other reason. ip_conntrack_expect_put() might be called with holding lock.
Ideally, caller of ip_conntrack_expect_put() should not hold it...
-- Yasuyuki Kozakai
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-13 13:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-31 16:34 handling the termination of 'expected' connection iler_ml
2006-02-13 13:54 ` Yasuyuki KOZAKAI
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.