Home
last modified time | relevance | path

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

12

/system/core/libnetutils/include/netutils/
Difc.h35 extern int ifc_enable(const char *ifname);
36 extern int ifc_disable(const char *ifname);
42 extern int ifc_reset_connections(const char *ifname, const int reset_mask);
57 extern int ifc_remove_default_route(const char *ifname);
61 extern int ifc_configure(const char *ifname, in_addr_t address,
/system/core/libnetutils/
Difc_utils.c382 char ifname[64]; // Currently, IFNAMSIZ = 16. in ifc_clear_ipv6_addresses() local
391 rawaddrstr, &prefixlen, ifname) == 3) { in ifc_clear_ipv6_addresses()
393 if (strcmp(name, ifname)) { in ifc_clear_ipv6_addresses()
412 ret = ifc_del_address(ifname, addrstr, prefixlen); in ifc_clear_ipv6_addresses()
414 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname, in ifc_clear_ipv6_addresses()
533 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
543 rt.rt_dev = (void*) ifname; in ifc_act_on_ipv4_route()
592 int ifc_enable(const char *ifname) in ifc_enable() argument
597 result = ifc_up(ifname); in ifc_enable()
603 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.h22 int open_raw_socket(const char* ifname, uint8_t hwaddr[ETH_ALEN], int if_index);
/system/netd/server/
DNetdHwService.cpp105 uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination, in addRouteToOemNetwork() argument
110 return toHalStatus(gCtls->netCtrl.addRoute(netId, ifname.c_str(), destination.c_str(), in addRouteToOemNetwork()
116 uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination, in removeRouteFromOemNetwork() argument
121 return toHalStatus(gCtls->netCtrl.removeRoute(netId, ifname.c_str(), destination.c_str(), in removeRouteFromOemNetwork()
126 const hidl_string& ifname) { in addInterfaceToOemNetwork() argument
130 return toHalStatus(gCtls->netCtrl.addInterfaceToNetwork(netId, ifname.c_str())); in addInterfaceToOemNetwork()
134 const hidl_string& ifname) { in removeInterfaceFromOemNetwork() argument
138 return toHalStatus(gCtls->netCtrl.removeInterfaceFromNetwork(netId, ifname.c_str())); in removeInterfaceFromOemNetwork()
DNetdHwService.h39 uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination,
42 uint64_t networkHandle, const hidl_string& ifname, const hidl_string& destination,
45 const hidl_string& ifname) override;
47 const hidl_string& ifname) override;
DTrafficController.cpp916 auto ifname = mIfaceIndexNameMap.readValue(ifIndex); in dump() local
917 if (!ifname.ok()) { in dump()
918 ifname = IfaceValue{"unknown"}; in dump()
921 ifname.value().name, key.tag, key.uid, key.counterSet, value.rxBytes, in dump()
941 const char* ifname = value.name; in dump() local
942 dw.println("ifaceIndex=%u ifaceName=%s", key, ifname); in dump()
956 auto ifname = mIfaceIndexNameMap.readValue(key); in dump() local
957 if (!ifname.ok()) { in dump()
958 ifname = IfaceValue{"unknown"}; in dump()
960 dw.println("%u %s %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64, key, ifname.value().name, in dump()
[all …]
DTetherController.cpp435 for (const auto& ifname : mInterfaces) { in applyDnsInterfaces() local
436 if (daemonCmd.size() + 1 + ifname.size() >= MAX_CMD_SIZE) { in applyDnsInterfaces()
442 daemonCmd += ifname; in applyDnsInterfaces()
DNetdNativeService.cpp603 const std::string& ifname, in getProcSysNet() argument
613 std::get<2>(pathParts), ifname.c_str(), in getProcSysNet()
619 const std::string& ifname, in setProcSysNet() argument
630 std::get<2>(pathParts), ifname.c_str(), in setProcSysNet()
1007 for (const auto& ifname : gCtls->tetherCtrl.getTetheredInterfaceList()) { in tetherInterfaceList() local
1008 ifList->push_back(ifname); in tetherInterfaceList()
/system/hardware/interfaces/net/netd/1.1/
DINetd.hal28 * Either both, or one of the ifname and nexthop must be specified.
32 * @param ifname Interface name specified by the route, or an empty
45 addRouteToOemNetwork(uint64_t networkHandle, string ifname,
51 * Either both, or one of the ifname and nexthop must be specified.
55 * @param ifname Interface name specified by the route, or an empty
68 removeRouteFromOemNetwork(uint64_t networkHandle, string ifname,
77 * @param ifname Interface name to add to the OEM network.
81 addInterfaceToOemNetwork(uint64_t networkHandle, string ifname)
89 * @param ifname Interface name to remove from the OEM network.
93 removeInterfaceFromOemNetwork(uint64_t networkHandle, string ifname)
/system/netd/libnetdbpf/
DBpfNetworkStats.cpp81 char ifname[IFNAMSIZ]; in bpfGetIfaceStatsInternal() local
82 if (getIfaceNameFromMap(ifaceNameMap, ifaceStatsMap, key, ifname, key, in bpfGetIfaceStatsInternal()
86 if (!iface || !strcmp(iface, ifname)) { in bpfGetIfaceStatsInternal()
120 const char* ifname) { in populateStatsEntry() argument
122 strlcpy(newLine.iface, ifname, sizeof(newLine.iface)); in populateStatsEntry()
142 char ifname[IFNAMSIZ]; in parseBpfNetworkStatsDetailInternal() local
143 if (getIfaceNameFromMap(ifaceMap, statsMap, key.ifaceIndex, ifname, key, in parseBpfNetworkStatsDetailInternal()
147 std::string ifnameStr(ifname); in parseBpfNetworkStatsDetailInternal()
163 lines->push_back(populateStatsEntry(key, statsEntry.value(), ifname)); in parseBpfNetworkStatsDetailInternal()
241 char ifname[IFNAMSIZ]; in parseBpfNetworkStatsDevInternal() local
[all …]
DBpfNetworkStatsTest.cpp379 char ifname[IFNAMSIZ]; in TEST_F() local
382 ifname, curKey, &unknownIfaceBytesTotal)); in TEST_F()
386 ifname, curKey, &unknownIfaceBytesTotal)); in TEST_F()
/system/core/libsysutils/src/
DNetlinkEvent.cpp182 char ifname[IFNAMSIZ] = ""; in parseIfAddrMessage() local
232 if (!if_indextoname(ifaddr->ifa_index, ifname)) { in parseIfAddrMessage()
264 asprintf(&mParams[1], "INTERFACE=%s", ifname); in parseIfAddrMessage()
468 char ifname[IFNAMSIZ]; in parseNdUserOptMessage() local
469 if (!if_indextoname(msg->nduseropt_ifindex, ifname)) { in parseNdUserOptMessage()
524 pos += strlcpy(buf + pos, ifname, bufsize - pos); in parseNdUserOptMessage()
531 asprintf(&mParams[0], "INTERFACE=%s", ifname); in parseNdUserOptMessage()
/system/netd/libnetdbpf/include/netdbpf/
DBpfNetworkStats.h75 const BpfMap<Key, StatsValue>& statsMap, uint32_t ifaceIndex, char* ifname, in getIfaceNameFromMap() argument
82 strlcpy(ifname, iface.value().name, sizeof(IfaceValue)); in getIfaceNameFromMap()
/system/bt/include/hardware/
Dbt_pan.h48 const char* ifname);
/system/netd/tests/
Dbinder_test.cpp891 const std::string &ifname, const char *addrString, int prefixLength) { in interfaceHasAddress() argument
913 if (std::string(addr->ifa_name) != ifname || in interfaceHasAddress()
1035 const char* ifname; in TEST_F() member
1054 mNetd->getProcSysNet(td.ipversion, td.which, td.ifname, td.parameter, &value); in TEST_F()
1073 const char* ifname; in TEST_F() member
1090 mNetd->setProcSysNet(td.ipversion, td.which, td.ifname, td.parameter, td.value); in TEST_F()
1243 void expectIdletimerInterfaceRuleExists(const std::string& ifname, int timeout, in expectIdletimerInterfaceRuleExists() argument
1248 EXPECT_TRUE(iptablesIdleTimerInterfaceRuleExists(binary, IDLETIMER_RAW_PREROUTING, ifname, in expectIdletimerInterfaceRuleExists()
1251 ifname, IdletimerRule, MANGLE_TABLE)); in expectIdletimerInterfaceRuleExists()
1255 void expectIdletimerInterfaceRuleNotExists(const std::string& ifname, int timeout, in expectIdletimerInterfaceRuleNotExists() argument
[all …]
/system/netd/server/aidl_api/netd_aidl_interface/1/android/net/
DINetd.aidl19 …@utf8InCpp String getProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InC… in getProcSysNet() argument
20 …void setProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InCpp String par… in setProcSysNet() argument
/system/netd/server/aidl_api/netd_aidl_interface/2/android/net/
DINetd.aidl36 …@utf8InCpp String getProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InC… in getProcSysNet() argument
37 …void setProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InCpp String par… in setProcSysNet() argument
/system/netd/server/aidl_api/netd_aidl_interface/3/android/net/
DINetd.aidl37 …@utf8InCpp String getProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InC… in getProcSysNet() argument
38 …void setProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InCpp String par… in setProcSysNet() argument
/system/netd/server/aidl_api/netd_aidl_interface/4/android/net/
DINetd.aidl37 …@utf8InCpp String getProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InC… in getProcSysNet() argument
38 …void setProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InCpp String par… in setProcSysNet() argument
/system/netd/server/aidl_api/netd_aidl_interface/7/android/net/
DINetd.aidl59 …@utf8InCpp String getProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InC… in getProcSysNet() argument
60 …void setProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InCpp String par… in setProcSysNet() argument
/system/netd/server/aidl_api/netd_aidl_interface/6/android/net/
DINetd.aidl59 …@utf8InCpp String getProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InC… in getProcSysNet() argument
60 …void setProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InCpp String par… in setProcSysNet() argument
/system/netd/server/binder/android/net/
DINetd.aidl238 @utf8InCpp String getProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in getProcSysNet() argument
240 void setProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in setProcSysNet() argument
/system/netd/server/aidl_api/netd_aidl_interface/current/android/net/
DINetd.aidl59 …@utf8InCpp String getProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InC… in getProcSysNet() argument
60 …void setProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InCpp String par… in setProcSysNet() argument
/system/netd/server/aidl_api/netd_aidl_interface/5/android/net/
DINetd.aidl37 …@utf8InCpp String getProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InC… in getProcSysNet() argument
38 …void setProcSysNet(int ipversion, int which, in @utf8InCpp String ifname, in @utf8InCpp String par… in setProcSysNet() argument

12