]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
include: fix missing struct nlmsghdr without definition
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 27 Oct 2013 20:50:35 +0000 (21:50 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 27 Oct 2013 21:03:01 +0000 (22:03 +0100)
The definition of this structure belongs to the scope of
linux/netlink.h.

Based on patch from Jan Engelhardt.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/libnftables/chain.h
include/libnftables/rule.h
include/libnftables/set.h
include/libnftables/table.h

index d3086eaed5f9b3261991ed23ab29957ef076f106..d85a2a2a9a3fe46213b88569714343ba3a47b3cb 100644 (file)
@@ -41,6 +41,8 @@ uint32_t nft_chain_attr_get_u32(struct nft_chain *c, uint16_t attr);
 int32_t nft_chain_attr_get_s32(struct nft_chain *c, uint16_t attr);
 uint64_t nft_chain_attr_get_u64(struct nft_chain *c, uint16_t attr);
 
+struct nlmsghdr;
+
 void nft_chain_nlmsg_build_payload(struct nlmsghdr *nlh, const struct nft_chain *t);
 
 enum {
index 09d4637479dbf6cfc930d25cb05e73c5250c10e3..a501d2dc0b465e9b1073fa4b46c80c52baa238fc 100644 (file)
@@ -39,6 +39,8 @@ uint64_t nft_rule_attr_get_u64(const struct nft_rule *r, uint16_t attr);
 
 void nft_rule_add_expr(struct nft_rule *r, struct nft_rule_expr *expr);
 
+struct nlmsghdr;
+
 void nft_rule_nlmsg_build_payload(struct nlmsghdr *nlh, struct nft_rule *t);
 
 enum {
index e37782630e002d308e2bcf89a44fa368ddfaf6c6..14a6327e2fa1a80634cfd9efd56368dafc7abf55 100644 (file)
@@ -30,6 +30,8 @@ const void *nft_set_attr_get(struct nft_set *s, uint16_t attr);
 const char *nft_set_attr_get_str(struct nft_set *s, uint16_t attr);
 uint32_t nft_set_attr_get_u32(struct nft_set *s, uint16_t attr);
 
+struct nlmsghdr;
+
 struct nlmsghdr *nft_set_nlmsg_build_hdr(char *buf, uint16_t cmd, uint16_t family, uint16_t type, uint32_t seq);
 void nft_set_nlmsg_build_payload(struct nlmsghdr *nlh, struct nft_set *s);
 int nft_set_nlmsg_parse(const struct nlmsghdr *nlh, struct nft_set *s);
index 66574cfc1fb9a2bafdd380f70e619421cc640b5c..42a4aa7bf449277a3be41b382bba5df0870e05f4 100644 (file)
@@ -29,6 +29,8 @@ void nft_table_attr_set_str(struct nft_table *t, uint16_t attr, const char *str)
 uint32_t nft_table_attr_get_u32(struct nft_table *t, uint16_t attr);
 const char *nft_table_attr_get_str(struct nft_table *t, uint16_t attr);
 
+struct nlmsghdr;
+
 void nft_table_nlmsg_build_payload(struct nlmsghdr *nlh, const struct nft_table *t);
 
 enum {