]> git.ipfire.org Git - thirdparty/nftables.git/commit
include: cache a copy of nfnetlink.h
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Mon, 30 Sep 2013 09:22:42 +0000 (12:22 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Sep 2013 10:47:03 +0000 (12:47 +0200)
commiteecf8b9be0cefd708e099de6b35f9c5653a57e97
tree8781a98ec60ad50e69a2d0dbb092cce28cd60473
parenta72315d2bad47d99a18376290dd62336ca94ed95
include: cache a copy of nfnetlink.h

If nft is compiled without nftables Linux kernel headers installed, we
hit a compilation error:

src/mnl.c: In function ‘mnl_batch_put’:
src/mnl.c:117:16: error: ‘NFNL_SUBSYS_NFTABLES’ undeclared (first use in
this function)
src/mnl.c:117:16: note: each undeclared identifier is reported only once
for each function it appears in
src/mnl.c: In function ‘mnl_batch_begin’:
src/mnl.c:125:16: error: ‘NFNL_MSG_BATCH_BEGIN’ undeclared (first use in
this function)
src/mnl.c: In function ‘mnl_batch_end’:
src/mnl.c:130:16: error: ‘NFNL_MSG_BATCH_END’ undeclared (first use in
this function)

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/nfnetlink.h [new file with mode: 0644]