Packet checksum
When, in the great scheme of things, does packet checksum (and potential packet drop for bad checksums) occur? Is there a particular point in the netfilter process or does it occur before/after the chains?
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
Hi Scott,
Quoted 6 lines · Scott MacKay
When, in the great scheme of things, does packet checksum (and potential packet drop for bad checksums) occur? Is there a particular point in the netfilter process or does it occur before/after the chains?
AFAIK, the ip header checksum is done before the packet gets the NF_PREROUTING hook, so the packet will be drop before it hits netfilter.
Have a look at the ip_rcv(...) function (http://lxr.linux.no/source/net/ipv4/ip_input.c#L418)
could anyone confirm this?
cheers,
Pablo
TY!
-Scott
Quoted 12 lines · --- Pablo Neira
Hi Scott,
Quoted 2 lines · Scott MacKay
When, in the great scheme of things, does packet
checksum (and potential packet drop for badchecksums)
Quoted 1 line
occur? Is there a particular point in the
netfilter
Quoted 3 lines
process or does it occur before/after the chains?
Quoted 7 lines
AFAIK, the ip header checksum is done before the packet gets the
NF_PREROUTINGhook,
so the packet will be drop before it hits netfilter.Have a look at the
ip_rcv(...)function
(http://lxr.linux.no/source/net/ipv4/ip_input.c#L418)
Quoted 6 lines
could anyone confirm this?
cheers,
Pablo
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/