/system/core/libnetutils/ |
D | ifc_utils.c | 384 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 …]
|
D | dhcpclient.c | 129 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()
|
D | packet.h | 20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index);
|
D | packet.c | 43 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) in open_raw_socket() argument
|
/system/core/include/netutils/ |
D | ifc.h | 34 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/ |
D | srcaddr_selection_test.py | 54 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 …]
|
D | net_test.py | 174 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 …]
|
D | ping6_test.py | 206 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/ |
D | c_ppp.cc | 63 void PPPOnConnect(const char* ifname) { in PPPOnConnect() argument 64 PPP::GetInstance()->OnConnect(ifname); in PPPOnConnect()
|
D | ppp.cc | 110 void PPP::OnConnect(const string& ifname) { in OnConnect() argument 111 LOG(INFO) << __func__ << "(" << ifname << ")"; in OnConnect() 117 dict[kPPPInterfaceName] = ifname; in OnConnect()
|
D | c_ppp.h | 29 void PPPOnConnect(const char* ifname);
|
D | pppd_plugin.c | 25 PPPOnConnect(ifname); in PPPOnUp()
|
D | ppp.h | 49 void OnConnect(const std::string& ifname);
|
/system/connectivity/shill/dbus/ |
D | chromeos_supplicant_process_proxy.cc | 158 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()
|
D | chromeos_supplicant_process_proxy.h | 48 bool GetInterface(const std::string& ifname,
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 162 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/ |
D | device_info_unittest.cc | 71 MATCHER_P(IfreqEquals, ifname, "") { 74 (strcmp(ifname, ifr->ifr_name) == 0);
|
/system/connectivity/shill/supplicant/ |
D | supplicant_process_proxy_interface.h | 33 virtual bool GetInterface(const std::string& ifname,
|
D | mock_supplicant_process_proxy.h | 38 bool(const std::string& ifname, std::string* rpc_identifier));
|
/system/connectivity/shill/ |
D | device_info_unittest.cc | 1072 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 &&
|