commit | 6f455f5f4e9c28aefaefbe18ce7304b499645d75 | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Fri Apr 26 14:07:27 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sat Apr 27 17:07:21 2019 -0400 |
tree | f28d52c28e15bb7bf9cb4b58ab57d6b1aae2a769 | |
parent | f6ad55a6a184ebdf3d98a90eab0895f73ce9797e [diff] |
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>