All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: zhengchuanbo <zhengcb@netpower.com.cn>,
	netfilter-devel@lists.netfilter.org
Subject: Re: about ip_conntrack code
Date: Wed, 11 Feb 2004 06:48:11 +0100	[thread overview]
Message-ID: <4029C21B.9090307@eurodev.net> (raw)
In-Reply-To: <200402110935640.SM00868@zhengcb>

Hi!

I just asked the same question as you not a long time ago.

See:
http://lists.netfilter.org/pipermail/netfilter-devel/2003-December/013425.html



zhengchuanbo wrote:

>I'm trying to read the ip_conntrack code. But it is not easy for me to 
>understand the code. So I wish someone could help. Thanks in advance.
>	
>When an skb is received, we could call the ip_conntrack_get as following 
>to get the connection info,
>	 ct = ip_conntrack_get((struct sk_buff *)skb, &ctinfo);
>and it calls,
>	__ip_conntrack_get(skb->nfct, ctinfo);
>
>What I want to ask is in the __ip_conntrack_get, how is the ip_conntrack
>transformed from nfct? I can see that the code just makes a transform in
>the structure as follows,
>		struct ip_conntrack *ct
>		= (struct ip_conntrack *)nfct->master;
>
>I can't understand how the connection info is got by the transform. Wish I
>could get some help. 
>
>BTW, is there some more detailed documnets on netfilter code?
>  
>

The netfilter hacking HOW-TO, this and a bit of patience worked for me :-).

best regards,
Pablo

      reply	other threads:[~2004-02-11  5:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-11  1:48 about ip_conntrack code zhengchuanbo
2004-02-11  5:48 ` Pablo Neira [this message]

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=4029C21B.9090307@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=zhengcb@netpower.com.cn \
    /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.