]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables: Fix compilation with NLDEBUG defined
authorPhil Sutter <phil@nwl.cc>
Thu, 2 Aug 2018 15:05:12 +0000 (17:05 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 4 Aug 2018 12:13:54 +0000 (14:13 +0200)
In libnftnl-1.0.5, symbol name prefix changed from 'nft_' to 'nftnl_'.
This patch fixes for two places forgotten by the relevant commit.

Fixes: 742baabd185c3 ("iptables-compat: use new symbols in libnftnl")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft.c

index 327c19ad2c6c910732bb682589a2e592fa024622..05cd1564eaea16621fa7b99e1ef8779c7e19db6e 100644 (file)
@@ -815,7 +815,7 @@ static void nft_chain_print_debug(struct nftnl_chain *c, struct nlmsghdr *nlh)
 #ifdef NLDEBUG
        char tmp[1024];
 
-       nft_chain_snprintf(tmp, sizeof(tmp), c, 0, 0);
+       nftnl_chain_snprintf(tmp, sizeof(tmp), c, 0, 0);
        printf("DEBUG: chain: %s\n", tmp);
        mnl_nlmsg_fprintf(stdout, nlh, nlh->nlmsg_len, sizeof(struct nfgenmsg));
 #endif
@@ -1031,7 +1031,7 @@ static void nft_rule_print_debug(struct nftnl_rule *r, struct nlmsghdr *nlh)
 #ifdef NLDEBUG
        char tmp[1024];
 
-       nft_rule_snprintf(tmp, sizeof(tmp), r, 0, 0);
+       nftnl_rule_snprintf(tmp, sizeof(tmp), r, 0, 0);
        printf("DEBUG: rule: %s\n", tmp);
        mnl_nlmsg_fprintf(stdout, nlh, nlh->nlmsg_len, sizeof(struct nfgenmsg));
 #endif