]> git.proxmox.com Git - mirror_iproute2.git/commit
libnetlink: parse_rtattr_nested should allow NLA_F_NESTED flag
authorPetr Machata <pmachata@gmail.com>
Mon, 13 Jan 2020 14:16:28 +0000 (15:16 +0100)
committerDavid Ahern <dsahern@gmail.com>
Sat, 18 Jan 2020 21:46:12 +0000 (21:46 +0000)
commit0da4cfaa5d57a0329357a256eb9e92020e1fcd07
tree0d9b1fdacde6d3cbcd68f6bd7a0d6fe64d1ee173
parented81a2a040a9af811b098cbb8cf026afd698bdbe
libnetlink: parse_rtattr_nested should allow NLA_F_NESTED flag

In kernel commit 8cb081746c03 ("netlink: make validation more configurable
for future strictness"), Linux started implicitly flagging nests with
NLA_F_NESTED, unless the nest is created with nla_nest_start_noflag().

The ETS code uses nla_nest_start() where possible, so it does not work with
the current iproute2 code. Have libnetlink catch up by admitting the flag
in the attribute.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
include/libnetlink.h