* analysing ip_rcv code problems
@ 2004-12-10 9:54 cranium2003
0 siblings, 0 replies; only message in thread
From: cranium2003 @ 2004-12-10 9:54 UTC (permalink / raw)
To: kernerl mail
hello,
I know that in kernel 2.4 series,
function used to receive IP packets is ip_rcv. But i
am not getting where exactly IP header is removed that
is following lines from function ip_rcv can be used to
remove IP header
if (!pskb_may_pull(skb,
sizeof(struct iphdr)))
goto inhdr_error;
iph = skb->nh.iph;
...
...
...
...
and also
following lines from same kernel is used to remove
header as IP
header length is 20 bytes then which function actually
does IP header removal.
if (!pskb_may_pull(skb,
iph->ihl*4))
goto inhdr_error;
iph = skb->nh.iph;
Also why iph = skb->nh.iph statement is used twice in
function code ip_rcv.
regards,
cranium.
__________________________________
Do you Yahoo!?
Send holiday email and support a worthy cause. Do good.
http://celebrity.mail.yahoo.com
^ permalink raw reply [flat|nested] only message in threadonly message in thread, other threads:[~2004-12-10 9:55 UTC | newest] Thread overview: (only message) (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-12-10 9:54 analysing ip_rcv code problems cranium2003
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®