Lines Matching refs:ifindex
90 def MakePktInfo(version, addr, ifindex): argument
97 return In6Pktinfo((addr, ifindex)).Pack()
99 return InPktinfo((ifindex, addr, "\x00" * 4)).Pack()
256 ifindex = cls.ifindices[netid]
282 cls.iproute.AddAddress(cls._MyIPv4Address(netid), 24, ifindex)
283 cls.iproute.AddNeighbour(version, router, macaddr, ifindex)
285 cls.iproute.AddRoute(version, table, "default", 0, router, ifindex)
288 cls.IPv6Prefix(netid), 64, None, ifindex)
291 cls.iproute.DelRoute(version, table, "default", 0, router, ifindex)
294 cls.IPv6Prefix(netid), 64, None, ifindex)
296 cls.iproute.DelNeighbour(version, router, macaddr, ifindex)
297 cls.iproute.DelAddress(cls._MyIPv4Address(netid), 24, ifindex)
406 def SetUnicastInterface(self, s, ifindex): argument
408 ifindex = struct.pack("!I", ifindex)
412 s.setsockopt(net_test.SOL_IP, IP_UNICAST_IF, ifindex)
414 s.setsockopt(net_test.SOL_IPV6, IPV6_UNICAST_IF, ifindex)