]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables-events: fix compilation due change in libnftables
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Nov 2013 23:48:07 +0000 (00:48 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:53 +0000 (23:50 +0100)
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>
iptables/xtables-events.c

index 20392a5ba9d25015cce1e929eca6f968d38d2bd6..408e091fe250026ab9fc168677d07d0d73203e1a 100644 (file)
@@ -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);