summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-11-14 00:48:07 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-30 23:50:53 +0100
commit009bb1ae47f76fc538e0d6365448687f27d0f015 (patch)
treefcee79033084941689015b0e95d9b73a2b48c44e /iptables
parentb31304a8d88e5d3b4235ac693f56f8a9ca238c32 (diff)
xtables-events: fix compilation due change in libnftables
The patch (989b793 src: unify parse and output types) changed the table and chain type definitions, adapt this code to use the new ones. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r--iptables/xtables-events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/xtables-events.c b/iptables/xtables-events.c
index 20392a5b..408e091f 100644
--- a/iptables/xtables-events.c
+++ b/iptables/xtables-events.c
@@ -44,7 +44,7 @@ static int table_cb(const struct nlmsghdr *nlh, int type)
goto err_free;
}
- nft_table_snprintf(buf, sizeof(buf), t, NFT_TABLE_O_DEFAULT, 0);
+ nft_table_snprintf(buf, sizeof(buf), t, NFT_OUTPUT_DEFAULT, 0);
/* FIXME: define syntax to represent table events */
printf("# [table: %s]\t%s\n", type == NFT_MSG_NEWTABLE ? "NEW" : "DEL", buf);
@@ -112,7 +112,7 @@ static int chain_cb(const struct nlmsghdr *nlh, int type)
goto err_free;
}
- nft_chain_snprintf(buf, sizeof(buf), t, NFT_CHAIN_O_DEFAULT, 0);
+ nft_chain_snprintf(buf, sizeof(buf), t, NFT_OUTPUT_DEFAULT, 0);
/* FIXME: define syntax to represent chain events */
printf("# [chain: %s]\t%s\n", type == NFT_MSG_NEWCHAIN ? "NEW" : "DEL", buf);