Skip to content

Commit

Permalink
netfilter: nf_flow_table: fix checksum when handling DNAT
Browse files Browse the repository at this point in the history
Add a missing call to csum_replace4 like on SNAT.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Felix Fietkau authored and Pablo Neira Ayuso committed Feb 25, 2018
1 parent b718121 commit f4b7ac5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/netfilter/nf_flow_table_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ static int nf_flow_dnat_ip(const struct flow_offload *flow, struct sk_buff *skb,
default:
return -1;
}
csum_replace4(&iph->check, addr, new_addr);

return nf_flow_nat_ip_l4proto(skb, iph, thoff, addr, new_addr);
}
Expand Down

0 comments on commit f4b7ac5

Please sign in to comment.