]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: fix creation of base chains with hooknum and priority 0
authorPatrick McHardy <kaber@trash.net>
Tue, 6 Jul 2010 03:57:22 +0000 (05:57 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 6 Jul 2010 03:57:22 +0000 (05:57 +0200)
commitd4aea11c6a7674e4290dc71a4ac93c1d5be7240d
tree252eb3d12a9ee4b8910ce911919ca7141e042924
parentb20ba656ba7de066d4dcf5ebeef605e6acc7e01d
netlink: fix creation of base chains with hooknum and priority 0

Base chains with both a hook number and priority of zero are created
as regular chains. Fix by adding a BASECHAIN flag indicating that the
chain should be created as a base chain.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/rule.h
src/netlink.c
src/parser.y