All of lore.kernel.org
 help / color / mirror / Atom feed
* Q about ip_conntrack_expect_related()/ip_nat_expect_register()
@ 2002-10-23 13:48 Peter 'Luna' Runestig
  2002-10-30  8:44 ` Harald Welte
  0 siblings, 1 reply; 2+ messages in thread
From: Peter 'Luna' Runestig @ 2002-10-23 13:48 UTC (permalink / raw)
  To: netfilter-devel

Hi all!

I'm thinking of trying to put together a helper module, and I'm looking 
at existing code (plus reading howto's and searching the mbox archive) 
to try to grasp the way it all works.

I actually have two questions:

1) I'm looking at ip_{conntrack,nat}_irc.c (2.4.19). The help() function 
registered with ip_nat_helper_register(), seems to assume that the 
struct ip_conntrack *ct pointer passed, points to the same struct 
ip_conntrack that was modified in the conntrack help() function earlier. 
Why is that, what is the link between them? Just that the tuple/mask 
pair was identical in the ip_conntrack_helper_register() / 
ip_nat_helper_register() calls?

2) I also wonder why irc_nat_expected() is called at all! :-) Is it so, 
that every callback that is registered with ip_nat_expect_register(), is 
called for every connection that is "flagged" by 
ip_conntrack_expect_related() and is nat'ed in any way?

TIA,
- Peter
-- 
Peter 'Luna' Runestig (fd. Altberg), Sweden <peter@runestig.com>
PGP Key ID: 0xD07BBE13
Fingerprint: 7B5C 1F48 2997 C061 DE4B  42EA CB99 A35C D07B BE13
AOL Instant Messenger Screenname: PRunestig

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

end of thread, other threads:[~2002-10-30  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-23 13:48 Q about ip_conntrack_expect_related()/ip_nat_expect_register() Peter 'Luna' Runestig
2002-10-30  8:44 ` Harald Welte

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.