summaryrefslogtreecommitdiffstats
path: root/examples/nft-flowtable-get.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2022-11-15 11:12:03 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2022-11-15 11:48:18 +0100
commit7d9b9a5ca4fe744dfa76d146d2003c26f5a42034 (patch)
tree313fa8ae1bc6635cfd130937806d2d1d12fb5aba /examples/nft-flowtable-get.c
parenta29ac103e9811909342c0ff2da5c185adb1cde82 (diff)
src: replace nftnl_*_nlmsg_build_hdr() by nftnl_nlmsg_build_hdr()
Use nftnl_nlmsg_build_hdr() instead of nftnl_*_nlmsg_build_hdr(). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-flowtable-get.c')
-rw-r--r--examples/nft-flowtable-get.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/nft-flowtable-get.c b/examples/nft-flowtable-get.c
index 38929f3..1d10cc8 100644
--- a/examples/nft-flowtable-get.c
+++ b/examples/nft-flowtable-get.c
@@ -75,15 +75,15 @@ int main(int argc, char *argv[])
perror("OOM");
exit(EXIT_FAILURE);
}
- nlh = nftnl_flowtable_nlmsg_build_hdr(buf, NFT_MSG_GETFLOWTABLE, family,
- NLM_F_ACK, seq);
+ nlh = nftnl_nlmsg_build_hdr(buf, NFT_MSG_GETFLOWTABLE, family,
+ NLM_F_ACK, seq);
nftnl_flowtable_set_str(t, NFTNL_FLOWTABLE_TABLE, argv[2]);
nftnl_flowtable_set_str(t, NFTNL_FLOWTABLE_NAME, argv[3]);
nftnl_flowtable_nlmsg_build_payload(nlh, t);
nftnl_flowtable_free(t);
} else if (argc >= 2) {
- nlh = nftnl_flowtable_nlmsg_build_hdr(buf, NFT_MSG_GETFLOWTABLE, family,
- NLM_F_DUMP, seq);
+ nlh = nftnl_nlmsg_build_hdr(buf, NFT_MSG_GETFLOWTABLE, family,
+ NLM_F_DUMP, seq);
}
nl = mnl_socket_open(NETLINK_NETFILTER);