netfilter: nft_fib: Support existence check
authorPhil Sutter <phil@nwl.cc>
Fri, 10 Mar 2017 17:08:02 +0000 (18:08 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 13 Mar 2017 12:45:36 +0000 (13:45 +0100)
commit055c4b34b94f696d9bd9aad53a11378a0fc409c9
tree6684792302d223f0c50a28bdd47ebc04accae0af
parent1a64edf54f55d7956cf5a0d95898bc1f84f9b818
netfilter: nft_fib: Support existence check

Instead of the actual interface index or name, set destination register
to just 1 or 0 depending on whether the lookup succeeded or not if
NFTA_FIB_F_PRESENT was set in userspace.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nft_fib.h
include/uapi/linux/netfilter/nf_tables.h
net/ipv4/netfilter/nft_fib_ipv4.c
net/ipv6/netfilter/nft_fib_ipv6.c
net/netfilter/nft_fib.c