mirror_iproute2/bridge
Ido Schimmel 264be1d887 bridge: fdb: Fix FDB dump with strict checking disabled
While iproute2 correctly uses ifinfomsg struct as the ancillary header
when requesting an FDB dump on old kernels, it sets the message type to
RTM_GETLINK. This results in wrong reply being returned.

Fix this by using RTM_GETNEIGH instead.

Before:
$ bridge fdb show brport dummy0
Not RTM_NEWNEIGH: 00000158 00000010 00000002

After:
$ bridge fdb show brport dummy0
2a:0b:41:1c:92:d3 vlan 1 master br0 permanent
2a:0b:41:1c:92:d3 master br0 permanent
33:33:00:00:00:01 self permanent
01:00:5e:00:00:01 self permanent

Fixes: 05880354c2 ("bridge: fdb: Fix filtering with strict checking disabled")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: LiLiang <liali@redhat.com>
Acked-by: David Ahern <dsahern@gmail.com>
Acked-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2019-02-05 15:27:28 -08:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
bridge.c ip bridge: Set NETLINK_GET_STRICT_CHK on socket 2018-12-27 15:36:29 -08:00
fdb.c bridge: fdb: Fix FDB dump with strict checking disabled 2019-02-05 15:27:28 -08:00
link.c fix print_0xhex on 32 bit 2018-12-10 14:20:32 -08:00
Makefile SPDX license identifiers 2017-11-24 12:21:35 -08:00
mdb.c Tree wide: Drop sockaddr_nl arg 2018-10-22 09:43:48 -07:00
monitor.c bridge: make local variables static 2018-11-19 11:42:44 -08:00
vlan.c bridge: fix vlan show stats formatting 2018-10-29 09:58:03 -07:00