diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-10-24 15:20:04 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-10-24 15:23:56 +0200 |
commit | 6db6ec4d46270d1cd0b877bc03cd589789c53367 (patch) | |
tree | c99ade57aaaaf7e59213e609dd5a4d125f2bffa3 /src/mnl.c | |
parent | 7aa53c6c9bbe20631b63c6996bdaf0ce431b8d3e (diff) |
src: add nft_ prefix to everything exposed through include/nftables/nftables.h
Prepend nft_ prefix before these are exposed, reduce chances we hit
symbol namespace pollution problems when mixing libnftables with other
existing libraries.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/mnl.c')
-rw-r--r-- | src/mnl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -71,7 +71,7 @@ nft_mnl_talk(struct mnl_ctx *ctx, const void *data, unsigned int len, { uint32_t portid = mnl_socket_get_portid(ctx->nf_sock); - if (ctx->debug_mask & DEBUG_MNL) + if (ctx->debug_mask & NFT_DEBUG_MNL) mnl_nlmsg_fprintf(stdout, data, len, sizeof(struct nfgenmsg)); if (mnl_socket_sendto(ctx->nf_sock, data, len) < 0) @@ -229,7 +229,7 @@ static ssize_t mnl_nft_socket_sendmsg(const struct netlink_ctx *ctx) nftnl_batch_iovec(ctx->batch, iov, iov_len); for (i = 0; i < iov_len; i++) { - if (ctx->debug_mask & DEBUG_MNL) { + if (ctx->debug_mask & NFT_DEBUG_MNL) { mnl_nlmsg_fprintf(stdout, iov[i].iov_base, iov[i].iov_len, sizeof(struct nfgenmsg)); @@ -1122,7 +1122,7 @@ int mnl_nft_event_listener(struct mnl_ctx *ctx, } } - if (ctx->debug_mask & DEBUG_MNL) { + if (ctx->debug_mask & NFT_DEBUG_MNL) { mnl_nlmsg_fprintf(stdout, buf, sizeof(buf), sizeof(struct nfgenmsg)); } |