All of lore.kernel.org
 help / color / mirror / Atom feed
* about ip_conntrack code
@ 2004-02-11  1:48 zhengchuanbo
  2004-02-11  5:48 ` Pablo Neira
  0 siblings, 1 reply; 2+ messages in thread
From: zhengchuanbo @ 2004-02-11  1:48 UTC (permalink / raw)
  To: netfilter-devel


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?

Thanks again.
	
regards,
	
Jack
 	
	

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

end of thread, other threads:[~2004-02-11  5:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-11  1:48 about ip_conntrack code zhengchuanbo
2004-02-11  5:48 ` Pablo Neira

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.