/system/connectivity/shill/shims/ |
H A D | c_ppp.h | 29 void PPPOnConnect(const char* ifname);
|
H A D | c_ppp.cc | 63 void PPPOnConnect(const char* ifname) { argument 64 PPP::GetInstance()->OnConnect(ifname);
|
H A D | pppd_plugin.c | 25 PPPOnConnect(ifname);
|
H A D | ppp.h | 49 void OnConnect(const std::string& ifname);
|
H A D | ppp.cc | 110 void PPP::OnConnect(const string& ifname) { argument 111 LOG(INFO) << __func__ << "(" << ifname << ")"; local 117 dict[kPPPInterfaceName] = ifname;
|
/system/core/include/netutils/ |
H A 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/core/libnetutils/ |
H A D | packet.h | 20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index);
|
H A D | ifc_utils.c | 384 char ifname[64]; // Currently, IFNAMSIZ = 16. local 393 rawaddrstr, &prefixlen, ifname) == 3) { 395 if (strcmp(name, ifname)) { 414 ret = ifc_del_address(ifname, addrstr, prefixlen); 416 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname, 535 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, argument 545 rt.rt_dev = (void*) ifname; 594 int ifc_enable(const char *ifname) argument 599 result = ifc_up(ifname); 605 int ifc_disable(const char *ifname) argument 625 ifc_reset_connections(const char *ifname, const int reset_mask) argument 673 ifc_remove_default_route(const char *ifname) argument 691 ifc_configure(const char *ifname, in_addr_t address, uint32_t prefixLength, in_addr_t gateway, in_addr_t dns1, in_addr_t dns2) argument [all...] |
H A D | dhcpclient.c | 129 static int dhcp_configure(const char *ifname, dhcp_info *info) argument 132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, 389 int dhcp_init_ifc(const char *ifname) argument 407 if (ifc_get_hwaddr(ifname, hwaddr)) { 410 if (ifc_get_ifindex(ifname, &if_index)) { 414 s = open_raw_socket(ifname, hwaddr, if_index); 434 printerr("no acknowledgement from DHCP server\nconfiguring %s with offered parameters\n", ifname); 435 return dhcp_configure(ifname, &info); 514 printerr("configuring %s\n", ifname); 516 return dhcp_configure(ifname, [all...] |
H A D | packet.c | 43 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index)
|
/system/extras/tests/net_test/ |
H A D | net_test.py | 174 def GetInterfaceIndex(ifname): 176 ifr = struct.pack("%dsi" % IFNAMSIZ, ifname, 0) 181 def SetInterfaceHWAddr(ifname, hwaddr): 187 ifr = struct.pack("%dsH6s" % IFNAMSIZ, ifname, scapy.ARPHDR_ETHER, hwaddr) 191 def SetInterfaceState(ifname, up): 193 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, 0) 200 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags) 204 def SetInterfaceUp(ifname): 205 return SetInterfaceState(ifname, True) 208 def SetInterfaceDown(ifname) [all...] |
H A D | srcaddr_selection_test.py | 54 def SetIPv6Sysctl(self, ifname, sysctl, value): 55 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/%s" % (ifname, sysctl), value) 57 def SetDAD(self, ifname, value): 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): 62 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/optimistic_dad" % ifname, value) 64 def SetUseTempaddrs(self, ifname, value): 65 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/use_tempaddr" % ifname, value) 67 def SetUseOptimistic(self, ifname, valu [all...] |
H A 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/supplicant/ |
H A D | mock_supplicant_process_proxy.h | 38 bool(const std::string& ifname, std::string* rpc_identifier));
|
H A D | supplicant_process_proxy_interface.h | 33 virtual bool GetInterface(const std::string& ifname,
|
/system/netd/server/binder/android/net/ |
H A D | INetd.aidl | 179 * @param ifname The interface name portion of the path; may also be "all" or "default". 188 void setProcSysNet(int family, int which, in @utf8InCpp String ifname,
|
/system/connectivity/shill/dbus/ |
H A D | chromeos_supplicant_process_proxy.cc | 158 const std::string& ifname, string* rpc_identifier) { 159 SLOG(&supplicant_proxy_->GetObjectPath(), 2) << __func__ << ": " << ifname; local 167 if (!supplicant_proxy_->GetInterface(ifname, &path, &error)) { 168 LOG(FATAL) << "Failed to get interface " << ifname << ": " 157 GetInterface( const std::string& ifname, string* rpc_identifier) argument
|
H A D | chromeos_supplicant_process_proxy.h | 48 bool GetInterface(const std::string& ifname,
|
/system/connectivity/dhcp_client/ |
H A D | device_info_unittest.cc | 71 MATCHER_P(IfreqEquals, ifname, "") { 74 (strcmp(ifname, ifr->ifr_name) == 0);
|
/system/netd/server/ |
H A D | NetdNativeService.h | 60 int32_t family, int32_t which, const std::string &ifname, const std::string ¶meter,
|
H A D | TetherController.cpp | 297 for (const auto &ifname : mInterfaces) { 298 cmdLen += (ifname.size() + 1); 305 strcat(daemonCmd, ifname.c_str());
|
H A D | NetdNativeService.cpp | 240 int32_t family, int32_t which, const std::string &ifname, const std::string ¶meter, 269 familyStr, whichStr, ifname.c_str(), parameter.c_str(), 239 setProcSysNet( int32_t family, int32_t which, const std::string &ifname, const std::string ¶meter, const std::string &value) argument
|
/system/core/libsysutils/src/ |
H A D | NetlinkEvent.cpp | 162 char ifname[IFNAMSIZ] = ""; local 209 if (!if_indextoname(ifaddr->ifa_index, ifname)) { 238 asprintf(&mParams[1], "INTERFACE=%s", ifname); 428 char ifname[IFNAMSIZ]; local 429 if (!if_indextoname(msg->nduseropt_ifindex, ifname)) { 487 pos += strlcpy(buf + pos, ifname, bufsize - pos); 494 asprintf(&mParams[0], "INTERFACE=%s", ifname);
|
/system/netd/tests/ |
H A D | binder_test.cpp | 500 const std::string &ifname, const char *addrString, int prefixLength) { 522 if (std::string(addr->ifa_name) != ifname || 625 const char *ifname; member in struct:TestData 643 td.family, td.which, td.ifname, td.parameter, 499 interfaceHasAddress( const std::string &ifname, const char *addrString, int prefixLength) argument
|
/system/connectivity/shill/ |
H A 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 &&
|