summaryrefslogtreecommitdiffstats
path: root/include/libnftnl/ruleset.h
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2014-10-20 13:52:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-21 09:57:52 +0200
commitb858137bf744126531c50643587be328310f0280 (patch)
treee5ca340b5c27a970ce09ab5b99f0399ea4cccb7d /include/libnftnl/ruleset.h
parentfa22d7b058016ed748b78c7b9b65ce593f1d2e8c (diff)
utils: fix arp family number
NFPROTO_ARP = 3 in kernel space. We need the same value here in userspace in order to correctly communicate with the kernel. The failure solved by this patch made that {XML|JSON}-parsed tables of ARP family unable to be directly injected into kernel. To prevent future errors, this patch changes raw and AF_* values by the mathing NFPROTO_* couterpart as seen in linux/netfilter.h in both functions: * nft_family2str() * nft_str2family() Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/ruleset.h')
0 files changed, 0 insertions, 0 deletions