From a8f18b6955a5cc927ae80bdd3a19349915190bdd Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Wed, 18 Nov 2026 05:25:40 +0100 Subject: [PATCH] Stop the address dump at a done message anywhere in the datagram get_my_addresses only looked at the first netlink message of each datagram for NLMSG_DONE. When the kernel sends the last addresses and the done message in one datagram, as EL10 does for an IPv6 dump, the loop waited for another datagram that never came. reply_dhcp6 asks for the IPv6 addresses of the interface, so every DHCPv6 boot request went unanswered. A failed dump ends with an error message and no done message, so stop at an error message too. --- confluent_server/confluent/neighutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/neighutil.py b/confluent_server/confluent/neighutil.py index 1f6ade2b..c86f820e 100644 --- a/confluent_server/confluent/neighutil.py +++ b/confluent_server/confluent/neighutil.py @@ -132,10 +132,10 @@ async def get_my_addresses(idx=0, family=0, matchlla=None): while True: pdata = await asyncio.get_running_loop().sock_recv(s, 65536) v = memoryview(pdata) - if struct.unpack('H', v[4:6])[0] == 3: # netlink done message - break while len(v): length, typ = struct.unpack('IH', v[:6]) + if typ in (2, 3): # netlink error or done message + return addrs if typ == 20: fam, plen, _, scope, ridx = struct.unpack('BBBBI', v[nlhdrsz:nlhdrsz+ifaddrsz]) if matchlla: