From 4f08ff796bbb1dc2a5f29787c64d63a333532df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Wed, 2 Aug 2023 12:03:30 +0200 Subject: [PATCH] ipneigh: handle missing mac from neighbor entry --- src/capport/utils/ipneigh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/capport/utils/ipneigh.py b/src/capport/utils/ipneigh.py index 6836f80..7c591c0 100644 --- a/src/capport/utils/ipneigh.py +++ b/src/capport/utils/ipneigh.py @@ -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(