]> git.proxmox.com Git - mirror_iproute2.git/commit
bridge: fdb: Fix filtering with strict checking disabled
authorDavid Ahern <dsahern@gmail.com>
Thu, 3 Jan 2019 00:33:42 +0000 (16:33 -0800)
committerDavid Ahern <dsahern@gmail.com>
Fri, 4 Jan 2019 20:17:19 +0000 (12:17 -0800)
commit05880354c2cf37579fd4cd2f1d95a6b848f5dacc
tree75d707480c4289ef997dabebd10051a2647390be
parent285033bfebbd287e41176611ac7c95c4c3d84eff
bridge: fdb: Fix filtering with strict checking disabled

Older kernels expect an ifinfomsg struct as the ancillary header, and
after kernel commit bd961c9bc664 ("rtnetlink: fix rtnl_fdb_dump() for ndmsg
header") can handle either ifinfomsg or ndmsg. Strict data checking only
allows ndmsg.

Use the new RTNL_HANDLE_F_STRICT_CHK flag to know which header to send.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Tested-by: Ido Schimmel <idosch@mellanox.com>
bridge/fdb.c