netfilter: nft_dup: do not use sreg_dev if the user doesn't specify it
authorLiping Zhang <zlpnobody@gmail.com>
Sat, 29 Oct 2016 14:09:51 +0000 (22:09 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 31 Oct 2016 12:17:38 +0000 (13:17 +0100)
commitb73b8a1ba598236296a46103d81c10d629d9a470
treedfe1474c52de6b076e6abb5b8c9a0e44c2d7dabf
parentc17c3cdff10b9f59ef1244a14604f10949f17117
netfilter: nft_dup: do not use sreg_dev if the user doesn't specify it

The NFTA_DUP_SREG_DEV attribute is not a must option, so we should use it
in routing lookup only when the user specify it.

Fixes: d877f07112f1 ("netfilter: nf_tables: add nft_dup expression")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nft_dup_ipv4.c
net/ipv6/netfilter/nft_dup_ipv6.c