Revision f04c0767 nfdhcpd/nfdhcpd
b/nfdhcpd/nfdhcpd | ||
---|---|---|
462 | 462 |
""" |
463 | 463 |
for mac in self.clients.keys(): |
464 | 464 |
if self.clients[mac].ifname == ifname: |
465 |
iface = self.client[mac].iface |
|
465 |
iface = self.clients[mac].iface
|
|
466 | 466 |
del self.clients[mac] |
467 | 467 |
|
468 | 468 |
for ifindex in self.ifaces.keys(): |
... | ... | |
600 | 600 |
return |
601 | 601 |
|
602 | 602 |
ifmac = self.get_iface_hw_addr(iface) |
603 |
binding = self.clients[ifmac] |
|
604 |
subnet = binding.net6 |
|
603 |
binding = [ b for b in self.clients.values() if b.ifname == iface ] |
|
604 |
subnet = binding[0].net6 |
|
605 |
if subnet.net is None: |
|
606 |
logging.debug("No IPv6 network assigned for the interface") |
|
607 |
return |
|
605 | 608 |
ifll = subnet.make_ll64(ifmac) |
606 | 609 |
|
607 | 610 |
# Signal the kernel that it shouldn't further process the packet |
... | ... | |
636 | 639 |
return |
637 | 640 |
|
638 | 641 |
ifmac = self.get_iface_hw_addr(iface) |
639 |
binding = self.clients[ifmac] |
|
640 |
subnet = binding.net6 |
|
642 |
binding = [ b for b in self.clients.values() if b.ifname == iface ] |
|
643 |
subnet = binding[0].net6 |
|
644 |
if subnet.net is None: |
|
645 |
logging.debug("No IPv6 network assigned for the interface") |
|
646 |
return |
|
647 |
|
|
641 | 648 |
ifll = subnet.make_ll64(ifmac) |
642 | 649 |
|
643 | 650 |
ns = IPv6(payload.get_data()) |
Also available in: Unified diff