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.cpp138 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { in sendDumpRequest() argument
145 int ret = getaddrinfo(addrstr, nullptr, &hints, &res); in sendDumpRequest()
297 int SockDiag::destroySockets(uint8_t proto, int family, const char *addrstr) { in destroySockets() argument
302 if (int ret = sendDumpRequest(proto, family, addrstr)) { in destroySockets()
311 int SockDiag::destroySockets(const char *addrstr) { in destroySockets() argument
315 if (!strchr(addrstr, ':')) { in destroySockets()
316 if (int ret = destroySockets(IPPROTO_TCP, AF_INET, addrstr)) { in destroySockets()
317 ALOGE("Failed to destroy IPv4 sockets on %s: %s", addrstr, strerror(-ret)); in destroySockets()
321 if (int ret = destroySockets(IPPROTO_TCP, AF_INET6, addrstr)) { in destroySockets()
322 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.cc1597 std::string addrstr = address.ToString(); in btif_storage_remove_hearing_aid() local
1598 btif_config_remove(addrstr, HEARING_AID_READ_PSM_HANDLE); in btif_storage_remove_hearing_aid()
1599 btif_config_remove(addrstr, HEARING_AID_CAPABILITIES); in btif_storage_remove_hearing_aid()
1600 btif_config_remove(addrstr, HEARING_AID_CODECS); in btif_storage_remove_hearing_aid()
1601 btif_config_remove(addrstr, HEARING_AID_AUDIO_CONTROL_POINT); in btif_storage_remove_hearing_aid()
1602 btif_config_remove(addrstr, HEARING_AID_VOLUME_HANDLE); in btif_storage_remove_hearing_aid()
1603 btif_config_remove(addrstr, HEARING_AID_AUDIO_STATUS_HANDLE); in btif_storage_remove_hearing_aid()
1604 btif_config_remove(addrstr, HEARING_AID_AUDIO_STATUS_CCC_HANDLE); in btif_storage_remove_hearing_aid()
1605 btif_config_remove(addrstr, HEARING_AID_SERVICE_CHANGED_CCC_HANDLE); in btif_storage_remove_hearing_aid()
1606 btif_config_remove(addrstr, HEARING_AID_SYNC_ID); in btif_storage_remove_hearing_aid()
[all …]
Dbtif_config.cc136 std::string addrstr = bda.ToString(); in btif_get_device_type() local
137 const char* bd_addr_str = addrstr.c_str(); in btif_get_device_type()
148 std::string addrstr = bda.ToString(); in btif_get_address_type() local
149 const char* bd_addr_str = addrstr.c_str(); in btif_get_address_type()
Dbtif_dm.cc729 std::string addrstr = bd_addr.ToString(); in btif_dm_cb_create_bond() local
730 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
206 if (maybeLogDuplicateAttribute(*addrstr != '\0', "IFA_ADDRESS", msgtype)) in parseIfAddrMessage()
217 inet_ntop(AF_INET, addr4, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
225 inet_ntop(AF_INET6, addr6, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
254 if (addrstr[0] == '\0') { in parseIfAddrMessage()
263 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()