]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit357ab3fffc0b361a8d307af9e1fce303d35c16d1
tree6684792302d223f0c50a28bdd47ebc04accae0af
parentdb18fd84e2c76bd96aff7905c2f91b1fd0d19050
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