path: root/include
diff options
authorPablo Neira Ayuso <>2010-11-22 21:51:48 +0100
committerPablo Neira Ayuso <>2010-11-22 21:51:48 +0100
commitbbe1f68ded15a3579d26d8c3f23e9c3941296193 (patch)
tree411e86b58fbbb08290e6aaa30ffc4b137080352d /include
parentff4bacb058e3e084a1bf717bf5c5034e14f4ebea (diff)
attr: add mnl_attr_nest_cancel()
This patch adds mnl_attr_nest_cancel() that allows to cancel the current nest that we are building. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index 0b581d4..dc4d3dd 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -96,6 +96,7 @@ extern void mnl_attr_put_strz(struct nlmsghdr *nlh, uint16_t type, const char *d
/* TLV attribute nesting */
extern struct nlattr *mnl_attr_nest_start(struct nlmsghdr *nlh, uint16_t type);
extern void mnl_attr_nest_end(struct nlmsghdr *nlh, struct nlattr *start);
+extern void mnl_attr_nest_cancel(struct nlmsghdr *nlh, struct nlattr *start);
/* TLV validation */
extern int mnl_attr_type_valid(const struct nlattr *attr, uint16_t maxtype);