]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: add NLA_MIN_LEN
authorJohannes Berg <johannes.berg@intel.com>
Fri, 26 Apr 2019 12:07:27 +0000 (14:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Apr 2019 21:07:21 +0000 (17:07 -0400)
commit2f3586c6a8e44f7e34253e11cc0bee6ef553be12
treef28d52c28e15bb7bf9cb4b58ab57d6b1aae2a769
parent23807d8f4393819d2bf6b9d97fd5dd0cacdf4695
netlink: add NLA_MIN_LEN

Rather than using NLA_UNSPEC for this type of thing, use NLA_MIN_LEN
so we can make NLA_UNSPEC be NLA_REJECT under certain conditions for
future attributes.

While at it, also use NLA_EXACT_LEN for the struct example.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
lib/nlattr.c