netfilter: nft_exthdr: Add support for existence check
authorPhil Sutter <phil@nwl.cc>
Tue, 17 Jan 2017 21:51:26 +0000 (22:51 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Feb 2017 13:14:09 +0000 (14:14 +0100)
commitc078ca3b0c5bf82c2b31906c446d6e2ad8ea0783
treebebb843cfdedd03db69bcec8981e66503079f1ca
parent6e7bc478c9a006c701c14476ec9d389a484b4864
netfilter: nft_exthdr: Add support for existence check

If NFT_EXTHDR_F_PRESENT is set, exthdr will not copy any header field
data into *dest, but instead set it to 1 if the header is found and 0
otherwise.

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