From 49f29c7dfebebb24560a26cfb82a4d76fcf9426f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 16 Feb 2017 14:27:45 +0100 Subject: common: get rid of nftnl_batch_build_hdr() Add __nftnl_nlmsg_build_hdr() so nftnl_batch_build_hdr() and nftnl_nlmsg_build_hdr() share the same code. Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/libnftnl/common.h') diff --git a/include/libnftnl/common.h b/include/libnftnl/common.h index b9c6ff3..f67f186 100644 --- a/include/libnftnl/common.h +++ b/include/libnftnl/common.h @@ -41,8 +41,8 @@ enum nftnl_parse_type { struct nftnl_parse_err; -struct nlmsghdr *nftnl_nlmsg_build_hdr(char *buf, uint16_t cmd, uint16_t family, - uint16_t type, uint32_t seq); +struct nlmsghdr *nftnl_nlmsg_build_hdr(char *buf, uint16_t type, uint16_t family, + uint16_t flags, uint32_t seq); struct nftnl_parse_err *nftnl_parse_err_alloc(void); void nftnl_parse_err_free(struct nftnl_parse_err *); -- cgit v1.2.3