ramips: add support for mqmaker witi 512mb version
[openwrt/openwrt.git] / target / linux / generic / backport-4.14 / 365-netfilter-nf_flow_table-fix-checksum-when-handling-D.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Sun, 25 Feb 2018 17:22:55 +0100
3 Subject: [PATCH] netfilter: nf_flow_table: fix checksum when handling DNAT
4
5 Add a missing call to csum_replace4 like on SNAT
6
7 Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 ---
9
10 --- a/net/netfilter/nf_flow_table_ip.c
11 +++ b/net/netfilter/nf_flow_table_ip.c
12 @@ -130,6 +130,7 @@ static int nf_flow_dnat_ip(const struct
13 default:
14 return -1;
15 }
16 + csum_replace4(&iph->check, addr, new_addr);
17
18 return nf_flow_nat_ip_l4proto(skb, iph, thoff, addr, new_addr);
19 }