All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter 'Luna' Runestig" <peter@runestig.com>
To: netfilter-devel@lists.netfilter.org
Subject: Q about ip_conntrack_expect_related()/ip_nat_expect_register()
Date: Wed, 23 Oct 2002 15:48:35 +0200	[thread overview]
Message-ID: <3DB6A8B3.7050706@runestig.com> (raw)

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

             reply	other threads:[~2002-10-23 13:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-23 13:48 Peter 'Luna' Runestig [this message]
2002-10-30  8:44 ` Q about ip_conntrack_expect_related()/ip_nat_expect_register() Harald Welte

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=3DB6A8B3.7050706@runestig.com \
    --to=peter@runestig.com \
    --cc=netfilter-devel@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 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.