]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1666c57a578948a9205f74bf95825322bf3fe37d
tree29c06e00942fc07554ebb918d7702d22eb8c7ff3
parentacbb8cce98c62ed3207722090dc57ff590e71358
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