Home
last modified time | relevance | path

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

/system/netd/server/
DSockDiag.h67 int sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr);
73 int destroySockets(const char *addrstr);
94 int destroySockets(uint8_t proto, int family, const char *addrstr);
DSockDiag.cpp148 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { in sendDumpRequest() argument
155 int ret = getaddrinfo(addrstr, nullptr, &hints, &res); in sendDumpRequest()
307 int SockDiag::destroySockets(uint8_t proto, int family, const char *addrstr) { in destroySockets() argument
312 if (int ret = sendDumpRequest(proto, family, addrstr)) { in destroySockets()
321 int SockDiag::destroySockets(const char *addrstr) { in destroySockets() argument
325 if (!strchr(addrstr, ':')) { in destroySockets()
326 if (int ret = destroySockets(IPPROTO_TCP, AF_INET, addrstr)) { in destroySockets()
327 ALOGE("Failed to destroy IPv4 sockets on %s: %s", addrstr, strerror(-ret)); in destroySockets()
331 if (int ret = destroySockets(IPPROTO_TCP, AF_INET6, addrstr)) { in destroySockets()
332 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.cpp239 char addrstr[INET6_ADDRSTRLEN]; in processClient() local
242 addrstr, sizeof(addrstr), portstr, sizeof(portstr), in processClient()
247 (ret == 0) ? String16(addrstr) : String16(""), in processClient()
/system/bt/btif/src/
Dbtif_storage.cc1620 std::string addrstr = address.ToString(); in btif_storage_remove_hearing_aid() local
1621 btif_config_remove(addrstr, HEARING_AID_READ_PSM_HANDLE); in btif_storage_remove_hearing_aid()
1622 btif_config_remove(addrstr, HEARING_AID_CAPABILITIES); in btif_storage_remove_hearing_aid()
1623 btif_config_remove(addrstr, HEARING_AID_CODECS); in btif_storage_remove_hearing_aid()
1624 btif_config_remove(addrstr, HEARING_AID_AUDIO_CONTROL_POINT); in btif_storage_remove_hearing_aid()
1625 btif_config_remove(addrstr, HEARING_AID_VOLUME_HANDLE); in btif_storage_remove_hearing_aid()
1626 btif_config_remove(addrstr, HEARING_AID_AUDIO_STATUS_HANDLE); in btif_storage_remove_hearing_aid()
1627 btif_config_remove(addrstr, HEARING_AID_AUDIO_STATUS_CCC_HANDLE); in btif_storage_remove_hearing_aid()
1628 btif_config_remove(addrstr, HEARING_AID_SERVICE_CHANGED_CCC_HANDLE); in btif_storage_remove_hearing_aid()
1629 btif_config_remove(addrstr, HEARING_AID_SYNC_ID); in btif_storage_remove_hearing_aid()
[all …]
Dbtif_config.cc153 std::string addrstr = bda.ToString(); in btif_get_device_type() local
154 const char* bd_addr_str = addrstr.c_str(); in btif_get_device_type()
166 std::string addrstr = bda.ToString(); in btif_get_address_type() local
167 const char* bd_addr_str = addrstr.c_str(); in btif_get_address_type()
Dbtif_dm.cc679 std::string addrstr = bd_addr.ToString(); in btif_dm_cb_create_bond() local
680 const char* bdstr = addrstr.c_str(); in btif_dm_cb_create_bond()
/system/core/libsysutils/src/
DNetlinkEvent.cpp181 char addrstr[INET6_ADDRSTRLEN] = ""; in parseIfAddrMessage() local
207 if (maybeLogDuplicateAttribute(*addrstr != '\0', "IFA_ADDRESS", msgtype)) in parseIfAddrMessage()
218 inet_ntop(AF_INET, addr4, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
226 inet_ntop(AF_INET6, addr6, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
255 if (addrstr[0] == '\0') { in parseIfAddrMessage()
264 asprintf(&mParams[0], "ADDRESS=%s/%d", addrstr, ifaddr->ifa_prefixlen); in parseIfAddrMessage()
/system/core/libnetutils/
Difc_utils.c379 char rawaddrstr[INET6_ADDRSTRLEN], addrstr[INET6_ADDRSTRLEN]; in ifc_clear_ipv6_addresses() local
399 addrstr[j] = rawaddrstr[i]; in ifc_clear_ipv6_addresses()
401 addrstr[++j] = ':'; in ifc_clear_ipv6_addresses()
404 addrstr[j - 1] = '\0'; in ifc_clear_ipv6_addresses()
408 if (strncmp(addrstr, "fe80:", 5) == 0) { 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()
/system/bt/btif/co/
Dbta_hh_co.cc639 std::string addrstr = remote_bda.ToString(); in bta_hh_le_co_rpt_info() local
640 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_rpt_info()
676 std::string addrstr = remote_bda.ToString(); in bta_hh_le_co_cache_load() local
677 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_cache_load()
705 std::string addrstr = remote_bda.ToString(); in bta_hh_le_co_reset_rpt_cache() local
706 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_reset_rpt_cache()