diff options
Diffstat (limited to 'xt_FULLCONENAT.c')
-rw-r--r-- | xt_FULLCONENAT.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xt_FULLCONENAT.c b/xt_FULLCONENAT.c index 4787992..b6516b4 100644 --- a/xt_FULLCONENAT.c +++ b/xt_FULLCONENAT.c @@ -452,6 +452,8 @@ static unsigned int fullconenat_tg(struct sk_buff *skb, const struct xt_action_p ip = (ct_tuple_origin->dst).u3.ip; port = be16_to_cpu((ct_tuple_origin->dst).u.udp.port); + /* get the corresponding ifindex by the dst_ip (aka. external ip of this host), + * in case the packet needs to be forwarded from another inbound interface. */ net_dev = ip_dev_find(net, ip); if (net_dev != NULL) { ifindex = net_dev->ifindex; |