[NETFILTER]: ipt_ECN/ipt_TOS: fix incorrect checksum update
commita9f54596fa20be3edefaa0b24c8714edb945eeaa
authorPatrick McHardy <kaber@trash.net>
Thu, 12 Oct 2006 21:08:26 +0000 (12 14:08 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 16 Oct 2006 06:14:08 +0000 (15 23:14 -0700)
tree735fb43f1fa5b9ad2fd6d49387c279f2f663a5d3
parentf603b6ec50faabbabde53ae2e2ce774968524c40
[NETFILTER]: ipt_ECN/ipt_TOS: fix incorrect checksum update

Even though the tos field is only a single byte large, the values need to
be converted to net-endian for the checkum update so they are in the
corrent byte position. Also fix incorrect endian annotations.

Reported by Stephane Chazelas <Stephane_Chazelas@yahoo.fr>

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ipt_ECN.c
net/ipv4/netfilter/ipt_TOS.c