/system/netd/server/ |
D | SockDiag.h | 67 int sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr); 73 int destroySockets(const char* addrstr, int ifindex); 94 int destroySockets(uint8_t proto, int family, const char* addrstr, int ifindex);
|
D | SockDiag.cpp | 150 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { in sendDumpRequest() argument 157 int ret = getaddrinfo(addrstr, nullptr, &hints, &res); in sendDumpRequest() 309 int SockDiag::destroySockets(uint8_t proto, int family, const char* addrstr, int ifindex) { in destroySockets() argument 314 if (int ret = sendDumpRequest(proto, family, addrstr)) { in destroySockets() 325 int SockDiag::destroySockets(const char* addrstr, int ifindex) { in destroySockets() argument 329 std::string where = addrstr; in destroySockets() 332 if (!strchr(addrstr, ':')) { // inet_ntop never returns something like ::ffff:192.0.2.1 in destroySockets() 333 if (int ret = destroySockets(IPPROTO_TCP, AF_INET, addrstr, ifindex)) { in destroySockets() 338 if (int ret = destroySockets(IPPROTO_TCP, AF_INET6, addrstr, ifindex)) { in destroySockets()
|
D | NetlinkHandler.cpp | 139 char addrstr[INET6_ADDRSTRLEN + strlen("/128")]; in onEvent() local 140 strlcpy(addrstr, address, sizeof(addrstr)); in onEvent() 141 char *slash = strchr(addrstr, '/'); in onEvent() 161 std::string_view(addrstr).starts_with("fe80:") ? ifaceIndex : 0; in onEvent() 162 int ret = sd.destroySockets(addrstr, destroyIfaceIndex); in onEvent()
|
D | FwmarkServer.cpp | 239 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/ |
D | btif_storage.cc | 1601 std::string addrstr = address.ToString(); in btif_storage_remove_hearing_aid() local 1602 btif_config_remove(addrstr, HEARING_AID_READ_PSM_HANDLE); in btif_storage_remove_hearing_aid() 1603 btif_config_remove(addrstr, HEARING_AID_CAPABILITIES); in btif_storage_remove_hearing_aid() 1604 btif_config_remove(addrstr, HEARING_AID_CODECS); in btif_storage_remove_hearing_aid() 1605 btif_config_remove(addrstr, HEARING_AID_AUDIO_CONTROL_POINT); in btif_storage_remove_hearing_aid() 1606 btif_config_remove(addrstr, HEARING_AID_VOLUME_HANDLE); in btif_storage_remove_hearing_aid() 1607 btif_config_remove(addrstr, HEARING_AID_AUDIO_STATUS_HANDLE); in btif_storage_remove_hearing_aid() 1608 btif_config_remove(addrstr, HEARING_AID_AUDIO_STATUS_CCC_HANDLE); in btif_storage_remove_hearing_aid() 1609 btif_config_remove(addrstr, HEARING_AID_SERVICE_CHANGED_CCC_HANDLE); in btif_storage_remove_hearing_aid() 1610 btif_config_remove(addrstr, HEARING_AID_SYNC_ID); in btif_storage_remove_hearing_aid() [all …]
|
D | btif_config.cc | 132 std::string addrstr = bda.ToString(); in btif_get_device_type() local 133 const char* bd_addr_str = addrstr.c_str(); in btif_get_device_type() 144 std::string addrstr = bda.ToString(); in btif_get_address_type() local 145 const char* bd_addr_str = addrstr.c_str(); in btif_get_address_type()
|
D | btif_dm.cc | 610 std::string addrstr = bd_addr.ToString(); in btif_dm_cb_create_bond() local 611 const char* bdstr = addrstr.c_str(); in btif_dm_cb_create_bond()
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 181 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/ |
D | ifc_utils.c | 379 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/ |
D | bta_hh_co.cc | 641 std::string addrstr = remote_bda.ToString(); in bta_hh_le_co_rpt_info() local 642 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_rpt_info() 679 std::string addrstr = remote_bda.ToString(); in bta_hh_le_co_cache_load() local 680 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_cache_load() 717 std::string addrstr = remote_bda.ToString(); in bta_hh_le_co_reset_rpt_cache() local 718 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_reset_rpt_cache()
|