Home
last modified time | relevance | path

Searched refs:addrstr (Results 1 – 10 of 10) sorted by relevance

/system/netd/server/
DSockDiag.h68 int sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr);
74 int destroySockets(const char *addrstr);
95 int destroySockets(uint8_t proto, int family, const char *addrstr);
DSockDiag.cpp135 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { in sendDumpRequest() argument
143 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) { in sendDumpRequest()
296 int SockDiag::destroySockets(uint8_t proto, int family, const char *addrstr) { in destroySockets() argument
301 if (int ret = sendDumpRequest(proto, family, addrstr)) { in destroySockets()
310 int SockDiag::destroySockets(const char *addrstr) { in destroySockets() argument
314 if (!strchr(addrstr, ':')) { in destroySockets()
315 if (int ret = destroySockets(IPPROTO_TCP, AF_INET, addrstr)) { in destroySockets()
316 ALOGE("Failed to destroy IPv4 sockets on %s: %s", addrstr, strerror(-ret)); in destroySockets()
320 if (int ret = destroySockets(IPPROTO_TCP, AF_INET6, addrstr)) { in destroySockets()
321 ALOGE("Failed to destroy IPv6 sockets on %s: %s", addrstr, strerror(-ret)); in destroySockets()
[all …]
DNetlinkHandler.cpp139 char addrstr[INET6_ADDRSTRLEN + strlen("/128")]; in onEvent() local
140 strlcpy(addrstr, address, sizeof(addrstr)); in onEvent()
141 char *slash = strchr(addrstr, '/'); in onEvent()
158 int ret = sd.destroySockets(addrstr); in onEvent()
DFwmarkServer.cpp228 char addrstr[INET6_ADDRSTRLEN]; in processClient() local
231 addrstr, sizeof(addrstr), portstr, sizeof(portstr), in processClient()
236 (ret == 0) ? String16(addrstr) : String16(""), in processClient()
/system/bt/btif/src/
Dbtif_storage.cc1621 std::string addrstr = address.ToString(); in btif_storage_remove_hearing_aid() local
1622 btif_config_remove(addrstr, HEARING_AID_READ_PSM_HANDLE); in btif_storage_remove_hearing_aid()
1623 btif_config_remove(addrstr, HEARING_AID_CAPABILITIES); in btif_storage_remove_hearing_aid()
1624 btif_config_remove(addrstr, HEARING_AID_CODECS); in btif_storage_remove_hearing_aid()
1625 btif_config_remove(addrstr, HEARING_AID_AUDIO_CONTROL_POINT); in btif_storage_remove_hearing_aid()
1626 btif_config_remove(addrstr, HEARING_AID_VOLUME_HANDLE); in btif_storage_remove_hearing_aid()
1627 btif_config_remove(addrstr, HEARING_AID_AUDIO_STATUS_HANDLE); in btif_storage_remove_hearing_aid()
1628 btif_config_remove(addrstr, HEARING_AID_AUDIO_STATUS_CCC_HANDLE); in btif_storage_remove_hearing_aid()
1629 btif_config_remove(addrstr, HEARING_AID_SERVICE_CHANGED_CCC_HANDLE); in btif_storage_remove_hearing_aid()
1630 btif_config_remove(addrstr, HEARING_AID_SYNC_ID); in btif_storage_remove_hearing_aid()
[all …]
Dbtif_config.cc118 std::string addrstr = bda.ToString(); in btif_get_device_type() local
119 const char* bd_addr_str = addrstr.c_str(); in btif_get_device_type()
131 std::string addrstr = bda.ToString(); in btif_get_address_type() local
132 const char* bd_addr_str = addrstr.c_str(); in btif_get_address_type()
Dbtif_dm.cc668 std::string addrstr = bd_addr.ToString(); in btif_dm_cb_create_bond() local
669 const char* bdstr = addrstr.c_str(); in btif_dm_cb_create_bond()
/system/core/libsysutils/src/
DNetlinkEvent.cpp162 char addrstr[INET6_ADDRSTRLEN] = ""; in parseIfAddrMessage() local
184 if (maybeLogDuplicateAttribute(*addrstr != '\0', "IFA_ADDRESS", msgtype)) in parseIfAddrMessage()
195 inet_ntop(AF_INET, addr4, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
203 inet_ntop(AF_INET6, addr6, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
229 if (addrstr[0] == '\0') { in parseIfAddrMessage()
238 asprintf(&mParams[0], "ADDRESS=%s/%d", addrstr, ifaddr->ifa_prefixlen); in parseIfAddrMessage()
/system/core/libnetutils/
Difc_utils.c377 char rawaddrstr[INET6_ADDRSTRLEN], addrstr[INET6_ADDRSTRLEN]; in ifc_clear_ipv6_addresses() local
397 addrstr[j] = rawaddrstr[i]; in ifc_clear_ipv6_addresses()
399 addrstr[++j] = ':'; in ifc_clear_ipv6_addresses()
402 addrstr[j - 1] = '\0'; in ifc_clear_ipv6_addresses()
406 if (strncmp(addrstr, "fe80:", 5) == 0) { 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()
/system/bt/btif/co/
Dbta_hh_co.cc617 std::string addrstr = remote_bda.ToString(); in bta_hh_le_co_rpt_info() local
618 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_rpt_info()
654 std::string addrstr = remote_bda.ToString(); in bta_hh_le_co_cache_load() local
655 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_cache_load()
683 std::string addrstr = remote_bda.ToString(); in bta_hh_le_co_reset_rpt_cache() local
684 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_reset_rpt_cache()