path: root/include/libnftables/chain.h
diff options
authorPablo Neira Ayuso <>2013-11-24 21:01:49 +0100
committerPablo Neira Ayuso <>2013-11-24 21:08:21 +0100
commitd7955867a79e8aed8058a2a69953c6005bb9ef5a (patch)
treea649d38b5a7337e609531ee481b792aa55d8b5b2 /include/libnftables/chain.h
parent16f85ed04049501bf5ac932a5ae44627d76ef747 (diff)
src: consolidate netlink build header function
Add new function nft_nlmsg_build_hdr which consolidates all existing functions to build headers per object. They basically look the same. This patch still provides aliases for consistency in the naming approach. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/libnftables/chain.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libnftables/chain.h b/include/libnftables/chain.h
index fff47d3..8b4eab9 100644
--- a/include/libnftables/chain.h
+++ b/include/libnftables/chain.h
@@ -55,7 +55,7 @@ int nft_chain_parse(struct nft_chain *c, enum nft_parse_type type, const char *d
int nft_chain_snprintf(char *buf, size_t size, struct nft_chain *t, uint32_t type, uint32_t flags);
int nft_chain_fprintf(FILE *fp, struct nft_chain *c, uint32_t type, uint32_t flags);
-struct nlmsghdr *nft_chain_nlmsg_build_hdr(char *buf, uint16_t cmd, uint16_t family, uint16_t type, uint32_t seq);
+#define nft_chain_nlmsg_build_hdr nft_nlmsg_build_hdr
int nft_chain_nlmsg_parse(const struct nlmsghdr *nlh, struct nft_chain *t);
struct nft_chain_list;