diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-02 17:05:12 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-08-04 14:13:54 +0200 |
commit | ae574b2b882e84c1081706c8386e83e468e622f6 (patch) | |
tree | 66e956ce48b9dc38592cd63961ddb0d1ebbd9bd6 | |
parent | 82d278c19f8f187e78c90c91834018b16c007098 (diff) |
xtables: Fix compilation with NLDEBUG defined
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>
-rw-r--r-- | iptables/nft.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 327c19ad..05cd1564 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -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 |