Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 20 of 20) sorted by relevance

/system/core/libnetutils/
Difc_utils.c384 char ifname[64]; // Currently, IFNAMSIZ = 16. in ifc_clear_ipv6_addresses() local
393 rawaddrstr, &prefixlen, ifname) == 3) { in ifc_clear_ipv6_addresses()
395 if (strcmp(name, ifname)) { in ifc_clear_ipv6_addresses()
414 ret = ifc_del_address(ifname, addrstr, prefixlen); in ifc_clear_ipv6_addresses()
416 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname, in ifc_clear_ipv6_addresses()
535 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, in ifc_act_on_ipv4_route() argument
545 rt.rt_dev = (void*) ifname; in ifc_act_on_ipv4_route()
594 int ifc_enable(const char *ifname) in ifc_enable() argument
599 result = ifc_up(ifname); in ifc_enable()
605 int ifc_disable(const char *ifname) in ifc_disable() argument
[all …]
Ddhcpclient.c129 static int dhcp_configure(const char *ifname, dhcp_info *info) in dhcp_configure() argument
132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure()
389 int dhcp_init_ifc(const char *ifname) in dhcp_init_ifc() argument
407 if (ifc_get_hwaddr(ifname, hwaddr)) { in dhcp_init_ifc()
410 if (ifc_get_ifindex(ifname, &if_index)) { in dhcp_init_ifc()
414 s = open_raw_socket(ifname, hwaddr, if_index); in dhcp_init_ifc()
434 … printerr("no acknowledgement from DHCP server\nconfiguring %s with offered parameters\n", ifname); in dhcp_init_ifc()
435 return dhcp_configure(ifname, &info); in dhcp_init_ifc()
514 printerr("configuring %s\n", ifname); in dhcp_init_ifc()
516 return dhcp_configure(ifname, &info); in dhcp_init_ifc()
Dpacket.h20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index);
Dpacket.c43 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) in open_raw_socket() argument
/system/core/include/netutils/
Difc.h34 extern int ifc_enable(const char *ifname);
35 extern int ifc_disable(const char *ifname);
41 extern int ifc_reset_connections(const char *ifname, const int reset_mask);
54 extern int ifc_remove_default_route(const char *ifname);
58 extern int ifc_configure(const char *ifname, in_addr_t address,
/system/extras/tests/net_test/
Dsrcaddr_selection_test.py54 def SetIPv6Sysctl(self, ifname, sysctl, value): argument
55 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/%s" % (ifname, sysctl), value)
57 def SetDAD(self, ifname, value): argument
58 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/accept_dad" % ifname, value)
59 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/dad_transmits" % ifname, value)
61 def SetOptimisticDAD(self, ifname, value): argument
62 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/optimistic_dad" % ifname, value)
64 def SetUseTempaddrs(self, ifname, value): argument
65 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/use_tempaddr" % ifname, value)
67 def SetUseOptimistic(self, ifname, value): argument
[all …]
Dnet_test.py174 def GetInterfaceIndex(ifname): argument
176 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname, 0)
181 def SetInterfaceHWAddr(ifname, hwaddr): argument
187 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr)
191 def SetInterfaceState(ifname, up): argument
193 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, 0)
200 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags)
204 def SetInterfaceUp(ifname): argument
205 return SetInterfaceState(ifname, True)
208 def SetInterfaceDown(ifname): argument
[all …]
Dping6_test.py206 self.ifname = self.GetInterfaceName(self.netid)
208 self.lladdr = net_test.GetLinkAddress(self.ifname, True)
209 self.globaladdr = net_test.GetLinkAddress(self.ifname, False)
523 expected = self.lladdr + "%" + self.ifname
/system/connectivity/shill/shims/
Dc_ppp.cc63 void PPPOnConnect(const char* ifname) { in PPPOnConnect() argument
64 PPP::GetInstance()->OnConnect(ifname); in PPPOnConnect()
Dppp.cc110 void PPP::OnConnect(const string& ifname) { in OnConnect() argument
111 LOG(INFO) << __func__ << "(" << ifname << ")"; in OnConnect()
117 dict[kPPPInterfaceName] = ifname; in OnConnect()
Dc_ppp.h29 void PPPOnConnect(const char* ifname);
Dpppd_plugin.c25 PPPOnConnect(ifname); in PPPOnUp()
Dppp.h49 void OnConnect(const std::string& ifname);
/system/connectivity/shill/dbus/
Dchromeos_supplicant_process_proxy.cc158 const std::string& ifname, string* rpc_identifier) { in GetInterface() argument
159 SLOG(&supplicant_proxy_->GetObjectPath(), 2) << __func__ << ": " << ifname; in GetInterface()
167 if (!supplicant_proxy_->GetInterface(ifname, &path, &error)) { in GetInterface()
168 LOG(FATAL) << "Failed to get interface " << ifname << ": " in GetInterface()
Dchromeos_supplicant_process_proxy.h48 bool GetInterface(const std::string& ifname,
/system/core/libsysutils/src/
DNetlinkEvent.cpp162 char ifname[IFNAMSIZ] = ""; in parseIfAddrMessage() local
209 if (!if_indextoname(ifaddr->ifa_index, ifname)) { in parseIfAddrMessage()
238 asprintf(&mParams[1], "INTERFACE=%s", ifname); in parseIfAddrMessage()
428 char ifname[IFNAMSIZ]; in parseNdUserOptMessage() local
429 if (!if_indextoname(msg->nduseropt_ifindex, ifname)) { in parseNdUserOptMessage()
487 pos += strlcpy(buf + pos, ifname, bufsize - pos); in parseNdUserOptMessage()
494 asprintf(&mParams[0], "INTERFACE=%s", ifname); in parseNdUserOptMessage()
/system/connectivity/dhcp_client/
Ddevice_info_unittest.cc71 MATCHER_P(IfreqEquals, ifname, "") {
74 (strcmp(ifname, ifr->ifr_name) == 0);
/system/connectivity/shill/supplicant/
Dsupplicant_process_proxy_interface.h33 virtual bool GetInterface(const std::string& ifname,
Dmock_supplicant_process_proxy.h38 bool(const std::string& ifname, std::string* rpc_identifier));
/system/connectivity/shill/
Ddevice_info_unittest.cc1072 MATCHER_P2(IfreqEquals, ifindex, ifname, "") {
1076 (strcmp(ifname, ifr->ifr_name) == 0);
1173 MATCHER_P2(ArpreqEquals, ifname, peer, "") {
1185 strcmp(ifname, areq->arp_dev) == 0 &&