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()
264 ifindex = cls.ifindices[netid]
290 cls.iproute.AddAddress(cls._MyIPv4Address(netid), 24, ifindex)
291 cls.iproute.AddNeighbour(version, router, macaddr, ifindex)
293 cls.iproute.AddRoute(version, table, "default", 0, router, ifindex)
296 cls.IPv6Prefix(netid), 64, None, ifindex)
299 cls.iproute.DelRoute(version, table, "default", 0, router, ifindex)
302 cls.IPv6Prefix(netid), 64, None, ifindex)
304 cls.iproute.DelNeighbour(version, router, macaddr, ifindex)
305 cls.iproute.DelAddress(cls._MyIPv4Address(netid), 24, ifindex)
421 def SetUnicastInterface(self, s, ifindex): argument
423 ifindex = struct.pack("!I", ifindex)
427 s.setsockopt(net_test.SOL_IP, IP_UNICAST_IF, ifindex)
429 s.setsockopt(net_test.SOL_IPV6, IPV6_UNICAST_IF, ifindex)