summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-04-04 16:29:58 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-04-04 16:29:58 +0200
commit8bc402318be9f09b70cdb61d81799e90d8a64e7b (patch)
tree6eebf08f463f15d87c6a151b4cc43969588a3b70 /include
parentbd00b928e678b3ede5dbc5abc933539fe5cc31e6 (diff)
rename mnl_attr_type_invalid() by mnl_attr_type_ok()
And include the prototype in libmnl.h, since it was missing Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/libmnl/libmnl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index efdae74..ac488a7 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -86,6 +86,8 @@ extern void mnl_attr_put_str(struct nlmsghdr *nlh, int type, const void *data);
extern void mnl_attr_put_str_null(struct nlmsghdr *nlh, int type, const void *data);
/* TLV validation */
+extern int mnl_attr_type_ok(const struct nlattr *attr, int maxtype);
+
enum mnl_attr_data_type {
MNL_TYPE_UNSPEC,
MNL_TYPE_U8,