Skip to contentSkip to conversation

NF_INET_LOCAL_OUT and packet checksum

DISCUSSION Giacomo 1 participant 1 message Aug 5, 2009 netfilter

lore
Share & tools
lore

Giacomo

author
#0 lore raw

Hi to all.
I would like to know wether in NF_INET_LOCAL_OUT packets arrive already checksummed
(both IP and layer4 checksums).

Actually I noticed, in nf_nat_core.c and nf_nat_proto_tcp/udp.c the use of

csum_replace4() and csum_replace2().

Is the checksum in all cases already correctly calculated in this hook? Does netfilter recalculate it afterwards? (post routing?)

Thanks in advance.

Giacomo