Home
last modified time | relevance | path

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

/system/core/libnetutils/
Difc_utils.c380 char ifname[64]; // Currently, IFNAMSIZ = 16. in ifc_clear_ipv6_addresses() local
389 rawaddrstr, &prefixlen, ifname) == 3) { in ifc_clear_ipv6_addresses()
391 if (strcmp(name, ifname)) { in ifc_clear_ipv6_addresses()
410 ret = ifc_del_address(ifname, addrstr, prefixlen); in ifc_clear_ipv6_addresses()
412 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname, in ifc_clear_ipv6_addresses()
531 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
541 rt.rt_dev = (void*) ifname; in ifc_act_on_ipv4_route()
590 int ifc_enable(const char *ifname) in ifc_enable() argument
595 result = ifc_up(ifname); in ifc_enable()
601 int ifc_disable(const char *ifname) in ifc_disable() argument
[all …]
Ddhcpclient.c127 static int dhcp_configure(const char *ifname, dhcp_info *info) in dhcp_configure() argument
130 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure()
387 int dhcp_init_ifc(const char *ifname) in dhcp_init_ifc() argument
405 if (ifc_get_hwaddr(ifname, hwaddr)) { in dhcp_init_ifc()
408 if (ifc_get_ifindex(ifname, &if_index)) { in dhcp_init_ifc()
412 s = open_raw_socket(ifname, hwaddr, if_index); in dhcp_init_ifc()
432 … printerr("no acknowledgement from DHCP server\nconfiguring %s with offered parameters\n", ifname); in dhcp_init_ifc()
433 return dhcp_configure(ifname, &info); in dhcp_init_ifc()
512 printerr("configuring %s\n", ifname); in dhcp_init_ifc()
514 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.c42 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) in open_raw_socket() argument
/system/core/libnetutils/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/core/libsysutils/src/
DNetlinkEvent.cpp159 char ifname[IFNAMSIZ] = ""; in parseIfAddrMessage() local
206 if (!if_indextoname(ifaddr->ifa_index, ifname)) { in parseIfAddrMessage()
235 asprintf(&mParams[1], "INTERFACE=%s", ifname); in parseIfAddrMessage()
425 char ifname[IFNAMSIZ]; in parseNdUserOptMessage() local
426 if (!if_indextoname(msg->nduseropt_ifindex, ifname)) { in parseNdUserOptMessage()
484 pos += strlcpy(buf + pos, ifname, bufsize - pos); in parseNdUserOptMessage()
491 asprintf(&mParams[0], "INTERFACE=%s", ifname); in parseNdUserOptMessage()
/system/netd/server/
DTetherController.cpp311 for (const auto &ifname : mInterfaces) { in applyDnsInterfaces() local
312 cmdLen += (ifname.size() + 1); in applyDnsInterfaces()
319 strcat(daemonCmd, ifname.c_str()); in applyDnsInterfaces()
DNetdNativeService.h60 int32_t family, int32_t which, const std::string &ifname, const std::string &parameter,
DNetdNativeService.cpp263 int32_t family, int32_t which, const std::string &ifname, const std::string &parameter, in setProcSysNet() argument
292 familyStr, whichStr, ifname.c_str(), parameter.c_str(), in setProcSysNet()
DCommandListener.cpp449 for (const auto &ifname : gCtls->tetherCtrl.getTetheredInterfaceList()) { in runCommand() local
450 cli->sendMsg(ResponseCode::TetherInterfaceListResult, ifname.c_str(), false); in runCommand()
/system/netd/tests/
Dbinder_test.cpp451 const std::string &ifname, const char *addrString, int prefixLength) { in interfaceHasAddress() argument
473 if (std::string(addr->ifa_name) != ifname || in interfaceHasAddress()
576 const char *ifname; in TEST_F() member
594 td.family, td.which, td.ifname, td.parameter, in TEST_F()
/system/netd/server/binder/android/net/
DINetd.aidl188 void setProcSysNet(int family, int which, in @utf8InCpp String ifname, in setProcSysNet() argument