diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-11-24 21:01:49 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-11-24 21:08:21 +0100 |
commit | d7955867a79e8aed8058a2a69953c6005bb9ef5a (patch) | |
tree | a649d38b5a7337e609531ee481b792aa55d8b5b2 /include/libnftables/common.h | |
parent | 16f85ed04049501bf5ac932a5ae44627d76ef747 (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 <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/common.h')
-rw-r--r-- | include/libnftables/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libnftables/common.h b/include/libnftables/common.h index 2283d72..9cd92b2 100644 --- a/include/libnftables/common.h +++ b/include/libnftables/common.h @@ -13,4 +13,8 @@ enum nft_parse_type { NFT_PARSE_JSON, NFT_PARSE_MAX, }; + +struct nlmsghdr *nft_nlmsg_build_hdr(char *buf, uint16_t cmd, uint16_t family, + uint16_t type, uint32_t seq); + #endif |