summaryrefslogtreecommitdiffstats
path: root/net/ipv4/arp.c
diff options
context:
space:
mode:
authorTom Herbert2014-06-11 03:54:13 +0200
committerDavid S. Miller2014-06-12 00:46:12 +0200
commit5d0c2b95bc57cf8fdc0e7b3e9d7e751eb65ad052 (patch)
tree7614df8920d998a75dda7c1530ec6fc4d558d1f4 /net/ipv4/arp.c
parentMerge branch 'qlcnic-next' (diff)
downloadkernel-qcow2-linux-5d0c2b95bc57cf8fdc0e7b3e9d7e751eb65ad052.tar.gz
kernel-qcow2-linux-5d0c2b95bc57cf8fdc0e7b3e9d7e751eb65ad052.tar.xz
kernel-qcow2-linux-5d0c2b95bc57cf8fdc0e7b3e9d7e751eb65ad052.zip
net: Preserve CHECKSUM_COMPLETE at validation
Currently when the first checksum in a packet is validated using CHECKSUM_COMPLETE, ip_summed is overwritten to be CHECKSUM_UNNECESSARY so that any subsequent checksums in the packet are not correctly validated. This patch adds csum_valid flag in sk_buff and uses that to indicate validated checksum instead of setting CHECKSUM_UNNECESSARY. The bit is set accordingly in the skb_checksum_validate_* functions. The flag is checked in skb_checksum_complete, so that validation is communicated between checksum_init and checksum_complete sequence in TCP and UDP. Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/arp.c')
0 files changed, 0 insertions, 0 deletions