act_nat: fix the wrong checksum when addr isn't in old_addr/mask
authorChangli Gao <xiaosuo@gmail.com>
Sat, 29 May 2010 14:26:59 +0000 (14:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 13:51:34 +0000 (06:51 -0700)
commit33c29dde7d04dc0ec0edb649d20ccf1351c13a06
tree29c06e00942fc07554ebb918d7702d22eb8c7ff3
parente3fe8558c7fc182972c3d947d88744482111f304
act_nat: fix the wrong checksum when addr isn't in old_addr/mask

fix the wrong checksum when addr isn't in old_addr/mask

For TCP and UDP packets, when addr isn't in old_addr/mask we don't do SNAT or
DNAT, and we should not update layer 4 checksum.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
----
 net/sched/act_nat.c |    4 ++++
 1 file changed, 4 insertions(+)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_nat.c