Home
last modified time | relevance | path

Searched refs:lladdr (Results 1 – 6 of 6) sorted by relevance

/kernel/tests/net/test/
Diproute.py669 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)
[all …]
Dping6_test.py260 self.lladdr = net_test.GetLinkAddress(self.ifname, True)
619 s.bind, (self.lladdr, 1026, 0, 0))
625 s.bind((self.lladdr, 4646, 0, self.ifindex))
627 expected = self.lladdr
845 s.bind((self.lladdr, 0xd00d, 0, self.ifindex))
846 self.CheckSockStatFile("icmp6", self.lladdr, 0xd00d, "::", 0, 7)
851 self.CheckSockStatFile("icmp6", self.lladdr, 0xd00d, "ff02::1", 0xdead, 1)
854 self.CheckSockStatFile("icmp6", self.lladdr, 0xd00d, "ff02::1", 0xdead, 1,
857 self.CheckSockStatFile("icmp6", self.lladdr, 0xd00d, "ff02::1", 0xdead, 1,
Dpackets.py196 scapy.ICMPv6NDOptSrcLLAddr(lladdr=srcmac))
202 scapy.ICMPv6NDOptDstLLAddr(lladdr=srcmac))
Dneighbour_test.py171 scapy.ICMPv6NDOptSrcLLAddr(lladdr=llsrc)
203 scapy.ICMPv6NDOptDstLLAddr(lladdr=mac)
Dmultinetwork_base.py249 lladdr = cls._RouterAddress(netid, 6)
263 scapy.IPv6(src=lladdr, hlim=255) /
268 scapy.ICMPv6NDOptSrcLLAddr(lladdr=macaddr) /
Dsrcaddr_selection_test.py314 scapy.ICMPv6NDOptDstLLAddr(lladdr=conflict_macaddr))