[NETFILTER]: nf_conntrack: Fix TCP/UDP HW checksum handling for IPv6 packet
authorYasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Wed, 15 Feb 2006 23:25:18 +0000 (15:25 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2006 23:25:18 +0000 (15:25 -0800)
commit7c6de05884b9fcc7ef621e2ab198ba93d85f46aa
tree0ed6f6709aa703691be1292d2cb1a60ab338bdec
parent763ecff1879b3877f57f20fc9e79599aef59359f
[NETFILTER]: nf_conntrack: Fix TCP/UDP HW checksum handling for IPv6 packet

If skb->ip_summed is CHECKSUM_HW here, skb->csum includes checksum
of actual IPv6 header and extension headers. Then such excess
checksum must be subtruct when nf_conntrack calculates TCP/UDP checksum
with pseudo IPv6 header. Spotted by Ben Skeggs.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_proto_tcp.c
net/netfilter/nf_conntrack_proto_udp.c