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

* Re: Q about ip_conntrack_expect_related()/ip_nat_expect_register()
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Welte @ 2002-10-30  8:44 UTC (permalink / raw)
  To: Peter 'Luna' Runestig; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 980 bytes --]

On Wed, Oct 23, 2002 at 03:48:35PM +0200, Peter 'Luna' Runestig wrote:
> 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 

please don't look at 2.4.19 kernels, they predate the newnat changes.

Either look at 2.4.20-preX (where X > 2), or apply (at least) the newnat
patch from patch-o-matic.

The API has changed in both the issues you are questioning.

> TIA,
> - Peter
 

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
 as I'm the dictator."  --  George W. Bush Dec 18, 2000

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ 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.