Skip to contentSkip to conversation

Packet checksum

DISCUSSION Scott MacKay 2 participants 3 messages Feb 4, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw

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

#2 lore raw

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 bad

checksums)

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_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)

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/