Lines Matching refs:lladdr
669 def _Neighbour(self, version, is_add, addr, lladdr, dev, state, flags=0): argument
674 if is_add and lladdr:
675 lladdr = lladdr.split(":")
676 if len(lladdr) != 6 or any (len(b) not in range(1, 3) for b in lladdr):
677 raise ValueError("Invalid lladdr %s" % ":".join(lladdr))
678 lladdr = binascii.unhexlify("".join(lladdr))
682 if is_add and lladdr:
683 ndmsg += self._NlAttr(NDA_LLADDR, lladdr)
687 def AddNeighbour(self, version, addr, lladdr, dev): argument
688 self._Neighbour(version, True, addr, lladdr, dev, NUD_PERMANENT)
690 def DelNeighbour(self, version, addr, lladdr, dev): argument
691 self._Neighbour(version, False, addr, lladdr, dev, 0)
693 def UpdateNeighbour(self, version, addr, lladdr, dev, state): argument
694 self._Neighbour(version, True, addr, lladdr, dev, state,