From 760768890e60617acfd144dce875a4a3be14513c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 1 Sep 2015 20:19:56 +0200 Subject: src: rename existing functions to use the nftnl_ prefix So we can use the nft_* prefix anytime soon for our upcoming higher level library. After this patch, the nft_* symbols become an alias of the nftnl_* symbols. Signed-off-by: Pablo Neira Ayuso --- examples/nft-set-del.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples/nft-set-del.c') diff --git a/examples/nft-set-del.c b/examples/nft-set-del.c index 5abd3b1..897793a 100644 --- a/examples/nft-set-del.c +++ b/examples/nft-set-del.c @@ -26,7 +26,7 @@ int main(int argc, char *argv[]) char buf[MNL_SOCKET_BUFFER_SIZE]; struct nlmsghdr *nlh; uint32_t portid, seq, family; - struct nft_set *t = NULL; + struct nftnl_set *t = NULL; int ret; if (argc != 4) { @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - t = nft_set_alloc(); + t = nftnl_set_alloc(); if (t == NULL) { perror("OOM"); exit(EXIT_FAILURE); @@ -54,13 +54,13 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - nlh = nft_set_nlmsg_build_hdr(buf, NFT_MSG_DELSET, family, + nlh = nftnl_set_nlmsg_build_hdr(buf, NFT_MSG_DELSET, family, NLM_F_ACK, seq); - nft_set_attr_set(t, NFT_SET_ATTR_TABLE, argv[2]); - nft_set_attr_set(t, NFT_SET_ATTR_NAME, argv[3]); + nftnl_set_attr_set(t, NFTNL_SET_ATTR_TABLE, argv[2]); + nftnl_set_attr_set(t, NFTNL_SET_ATTR_NAME, argv[3]); - nft_set_nlmsg_build_payload(nlh, t); - nft_set_free(t); + nftnl_set_nlmsg_build_payload(nlh, t); + nftnl_set_free(t); nl = mnl_socket_open(NETLINK_NETFILTER); if (nl == NULL) { -- cgit v1.2.3