Home
last modified time | relevance | path

Searched refs:ifindex (Results 1 – 7 of 7) sorted by relevance

/kernel/tests/net/test/
Dmultinetwork_base.py78 def MakePktInfo(version, addr, ifindex): argument
85 return csocket.In6Pktinfo((addr, ifindex)).Pack()
87 return csocket.InPktinfo((ifindex, addr, b"\x00" * 4)).Pack()
283 ifindex = cls.ifindices[netid]
313 cls.OnlinkPrefixLen(4), ifindex)
314 cls.iproute.AddNeighbour(version, router, macaddr, ifindex)
318 cls.OnlinkPrefixLen(version), None, ifindex)
319 cls.iproute.AddRoute(version, table, "default", 0, router, ifindex)
322 cls.iproute.DelRoute(version, table, "default", 0, router, ifindex)
325 cls.OnlinkPrefixLen(version), None, ifindex)
[all …]
Diproute.py538 def _Address(self, version, command, addr, prefixlen, flags, scope, ifindex): argument
541 ifaddrmsg = IfAddrMsg((family, prefixlen, flags, scope, ifindex)).Pack()
547 def _WaitForAddress(self, sock, address, ifindex): argument
560 (address, ifindex, e.strerror))
562 if msg.index == ifindex and attrs["IFA_ADDRESS"] == address:
565 def AddAddress(self, address, prefixlen, ifindex): argument
595 RT_SCOPE_UNIVERSE, ifindex)
598 self._WaitForAddress(sock, address, ifindex)
601 def DelAddress(self, address, prefixlen, ifindex): argument
603 RTM_DELADDR, address, prefixlen, 0, 0, ifindex)
[all …]
Danycast_test.py71 ifindex = self.ifindices[netid]
72 self.assertTrue(ifindex)
73 ipv6mreq = IPv6Mreq((addr, ifindex))
Dneighbour_test.py84 ifindex = self.ifindices[netid]
85 self.iproute.UpdateNeighbour(6, addr, None, ifindex, NUD_FAILED)
97 self.ifindex = self.ifindices[self.netid]
125 self.iproute.UpdateNeighbour(version, router, macaddr, self.ifindex, state)
129 def GetNeighbour(self, addr, ifindex): argument
131 for msg, args in self.iproute.DumpNeighbours(version, ifindex):
136 return self.GetNeighbour(addr, self.ifindex)
304 self.iproute.UpdateNeighbour(6, addr, None, self.ifindex, NUD_PROBE)
322 ifindex = self.ifindices[self.netid]
323 self.iproute.UpdateNeighbour(6, router6, None, ifindex, NUD_FAILED)
Dxfrm_tunnel_test.py498 def __init__(self, iface, netid, underlying_netid, ifindex, local, remote, argument
503 self.ifindex = ifindex
511 return self.iproute.CreateXfrmInterface(self.iface, self.netid, self.ifindex)
598 ifindex = cls.ifindices[underlying_netid]
599 tunnel = cls.INTERFACE_CLASS(iface, netid, underlying_netid, ifindex,
640 ifindex = net_test.GetInterfaceIndex(ifname)
642 net_test.AddressLengthBits(version), ifindex)
644 net_test.AddressLengthBits(version), ifindex)
687 ifindex = net_test.GetInterfaceIndex(tunnel.iface)
703 cls.iproute.AddAddress(addr, prefixlen, ifindex)
[all …]
Dping6_test.py259 self.ifindex = self.ifindices[self.netid]
625 s.bind((self.lladdr, 4646, 0, self.ifindex))
630 self.assertEqual((expected, 4646, 0, self.ifindex), sockname)
664 s.sendto(net_test.IPV6_PING, ("fe80::1", 55, 0, self.ifindex))
777 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_MULTICAST_IF, self.ifindex)
778 s.sendto(net_test.IPV6_PING, ("ff02::1", 55, 0, self.ifindex))
845 s.bind((self.lladdr, 0xd00d, 0, self.ifindex))
849 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_MULTICAST_IF, self.ifindex)
Dmultinetwork_test.py682 ifindex = self.ifindices[netid]
684 table, prefix, plen, router, ifindex, None, None)