Skip to content
Commit 33c29dde authored by Changli Gao's avatar Changli Gao Committed by David S. Miller
Browse files

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: default avatarChangli Gao <xiaosuo@gmail.com>
----
 net/sched/act_nat.c |    4 ++++
 1 file changed, 4 insertions(+)
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3fe8558
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment