Home
last modified time | relevance | path

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

/system/extras/tests/net_test/
Dmultinetwork_base.py90 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)
[all …]
Danycast_test.py70 ifindex = self.ifindices[netid]
71 self.assertTrue(ifindex)
72 ipv6mreq = IPv6Mreq((addr, ifindex))
Dneighbour_test.py73 ifindex = self.ifindices[netid]
74 self.iproute.UpdateNeighbour(6, addr, None, ifindex, NUD_FAILED)
86 self.ifindex = self.ifindices[self.netid]
255 self.iproute.UpdateNeighbour(6, addr, None, self.ifindex, NUD_PROBE)
271 ifindex = self.ifindices[self.netid]
272 self.iproute.UpdateNeighbour(6, router6, None, ifindex, NUD_FAILED)
Diproute.py427 def _Address(self, version, command, addr, prefixlen, flags, scope, ifindex): argument
430 ifaddrmsg = IfAddrMsg((family, prefixlen, flags, scope, ifindex)).Pack()
436 def AddAddress(self, address, prefixlen, ifindex): argument
439 IFA_F_PERMANENT, RT_SCOPE_UNIVERSE, ifindex)
441 def DelAddress(self, address, prefixlen, ifindex): argument
443 RTM_DELADDR, address, prefixlen, 0, 0, ifindex)
445 def GetAddress(self, address, ifindex=0): argument
452 self._Address(6, RTM_GETADDR, address, 0, 0, RT_SCOPE_UNIVERSE, ifindex)
Dping6_test.py207 self.ifindex = self.ifindices[self.netid]
524 s.bind((self.lladdr, 4646, 0, self.ifindex))
525 self.assertEquals((expected, 4646, 0, self.ifindex), s.getsockname())
555 s.sendto(net_test.IPV6_PING, ("fe80::1", 55, 0, self.ifindex))
616 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_MULTICAST_IF, self.ifindex)
617 s.sendto(net_test.IPV6_PING, ("ff02::1", 55, 0, self.ifindex))
680 s.bind((self.lladdr, 0xd00d, 0, self.ifindex))
684 s.setsockopt(net_test.SOL_IPV6, net_test.IPV6_MULTICAST_IF, self.ifindex)
/system/connectivity/shill/wifi/
Dmock_scan_session.cc31 uint32_t ifindex, in MockScanSession() argument
41 ifindex, in MockScanSession()
Dmock_scan_session.h41 uint32_t ifindex,
Dscan_session.h116 uint32_t ifindex,
Dscan_session.cc59 uint32_t ifindex, in ScanSession() argument
72 wifi_interface_index_(ifindex), in ScanSession()
/system/connectivity/shill/cellular/
Dmock_modem.h49 int ifindex));
/system/core/libnetutils/
Difc_utils.c262 int ifindex, s, len, ret; in ifc_act_on_address() local
285 ifindex = if_nametoindex(name); in ifc_act_on_address()
286 if (ifindex == 0) { in ifc_act_on_address()
321 req.r.ifa_index = ifindex; in ifc_act_on_address()
/system/netd/server/
DRouteController.cpp386 uint32_t ifindex; in modifyIpRoute() local
403 ifindex = if_nametoindex(interface); in modifyIpRoute()
404 if (!ifindex) { in modifyIpRoute()
437 { &ifindex, interface != OIF_NONE ? sizeof(ifindex) : 0 }, in modifyIpRoute()
/system/connectivity/shill/
Ddevice_info_unittest.cc1072 MATCHER_P2(IfreqEquals, ifindex, ifname, "") {
1075 (ifr->ifr_ifindex == ifindex) &&