summaryrefslogtreecommitdiff
path: root/include/netlink/attr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netlink/attr.h')
-rw-r--r--include/netlink/attr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netlink/attr.h b/include/netlink/attr.h
index bcfbf07..3e3047f 100644
--- a/include/netlink/attr.h
+++ b/include/netlink/attr.h
@@ -495,7 +495,7 @@ static inline struct nlattr *nla_nest_start(struct nl_msg *msg, int attrtype)
{
struct nlattr *start = (struct nlattr *) nlmsg_tail(msg->nm_nlh);
- if (nla_put(msg, attrtype, 0, NULL) < 0)
+ if (nla_put(msg, attrtype | NLA_F_NESTED, 0, NULL) < 0)
return NULL;
return start;