linux-cp: handle AF_BRIDGE neighbors 61/36961/2
authorMatthew Smith <mgsmith@netgate.com>
Fri, 19 Aug 2022 19:54:40 +0000 (19:54 +0000)
committerNeale Ranns <neale@graphiant.com>
Tue, 23 Aug 2022 22:12:58 +0000 (22:12 +0000)
commit9cd37fb28ce03b22a741e2be31250790b11182e0
treeb21a1ab08c8a44f0206291a145ada6288d096017
parent1a1c59d1a20ce834ee2296e9b12321410bbabac9
linux-cp: handle AF_BRIDGE neighbors

Type: improvement

VPP crashes when a linux-cp tap is added to a bridge on the host system
because rtnl_neigh_get_dst() returns NULL for the neighbor message that
is sent by the kernel.

Check for NULL before trying to use the address from a neighbor in a
netlink message.

Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Change-Id: I8a683d815a09620df9c0cc76e18df39828428e2c
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/linux-cp/lcp_router.c