diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-01 20:19:56 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-07 19:24:19 +0200 |
commit | 760768890e60617acfd144dce875a4a3be14513c (patch) | |
tree | 14a3a4f53e81fd9b44c8481e123f2c0ceb6f2bff /examples/nft-set-del.c | |
parent | b7154e52fc417e927bef0bbfa5db6e7a71f28602 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-set-del.c')
-rw-r--r-- | examples/nft-set-del.c | 14 |
1 files changed, 7 insertions, 7 deletions
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) { |