2
0

ipneigh: handle missing mac from neighbor entry

This commit is contained in:
Stefan Bühler 2023-08-02 12:03:30 +02:00
parent 2a3bd36d3b
commit 8eedb6b367

View File

@ -54,6 +54,8 @@ class NeighborController:
if neigh is None:
return None
mac = neigh.get_attr(neigh.name2nla('lladdr'))
if mac is None:
return None
return cptypes.MacAddress.parse(mac)
async def get_route(