2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-19 08:52:20 +00:00

Ignore DHCPv6 requests sent to another server

A client sends its Request to the server whose Advertise it picked,
named by the server identifier. confluent answered every Request, so
with several DHCPv6 servers on the segment, such as the members of a
collective, all of them replied to it.
This commit is contained in:
Markus Hilger
2026-11-18 13:06:14 +01:00
parent be3623c551
commit a328123357
@@ -483,6 +483,8 @@ async def process_dhcp6req(handler, rqv, addr, net, cfg, nodeguess):
req, disco = v6opts_to_dict(bytearray(rqv[4:]))
req['txid'] = rqv[1:4]
req['rqtype'] = bytearray(rqv[:1])[0]
if req['rqtype'] == 3 and req.get(2, b'') != b'\x00\x04' + get_my_duid():
return # request for another server
if not disco.get('uuid', None) or not disco.get('arch', None):
return
if disco['uuid'] == '03000200-0400-0500-0006-000700080009':