ipneigh: handle missing mac from neighbor entry

This commit is contained in:
ac107458 committed 2023-11-15 13:11:06 +01:00
1 parent 2a3bd36d3b
commit 8eedb6b367
1 file changed
+2
+2
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(