projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33894c3
)
netfilter: nf_flow_table: fix offloading connections with SNAT+DNAT
author
Felix Fietkau
<nbd@nbd.name>
Fri, 23 Mar 2018 18:15:38 +0000
(19:15 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 24 Apr 2018 08:29:07 +0000
(10:29 +0200)
Pass all NAT types to the flow offload struct, otherwise parts of the
address/port pair do not get translated properly, causing connection
stalls
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_flow_table_core.c
b/net/netfilter/nf_flow_table_core.c
index 0699981a8511560d36fa2db602b6289c07bda0b1..eb0d1658ac0559d8d74444ac3bb7714662cbe506 100644
(file)
--- a/
net/netfilter/nf_flow_table_core.c
+++ b/
net/netfilter/nf_flow_table_core.c
@@
-84,7
+84,7
@@
flow_offload_alloc(struct nf_conn *ct, struct nf_flow_route *route)
if (ct->status & IPS_SRC_NAT)
flow->flags |= FLOW_OFFLOAD_SNAT;
-
else
if (ct->status & IPS_DST_NAT)
+ if (ct->status & IPS_DST_NAT)
flow->flags |= FLOW_OFFLOAD_DNAT;
return flow;