Searched defs:addrstr (Results 1 - 4 of 4) sorted by last modified time
/system/netd/server/ |
H A D | NetlinkHandler.cpp | 85 char addrstr[INET6_ADDRSTRLEN]; local 86 strncpy(addrstr, address, sizeof(addrstr)); 87 char *slash = strchr(addrstr, '/'); 92 int ret = sd.destroySockets(addrstr);
|
H A D | SockDiag.cpp | 133 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { argument 141 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) { 267 int SockDiag::destroySockets(uint8_t proto, int family, const char *addrstr) { argument 272 if (int ret = sendDumpRequest(proto, family, addrstr)) { 281 int SockDiag::destroySockets(const char *addrstr) { argument 285 if (!strchr(addrstr, ':')) { 286 if (int ret = destroySockets(IPPROTO_TCP, AF_INET, addrstr)) { 287 ALOGE("Failed to destroy IPv4 sockets on %s: %s", addrstr, strerror(-ret)); 291 if (int ret = destroySockets(IPPROTO_TCP, AF_INET6, addrstr)) { 292 ALOGE("Failed to destroy IPv6 sockets on %s: %s", addrstr, strerro [all...] |
/system/core/libnetutils/ |
H A D | ifc_utils.c | 381 char rawaddrstr[INET6_ADDRSTRLEN], addrstr[INET6_ADDRSTRLEN]; local 401 addrstr[j] = rawaddrstr[i]; 403 addrstr[++j] = ':'; 406 addrstr[j - 1] = '\0'; 410 if (strncmp(addrstr, "fe80:", 5) == 0) { 414 ret = ifc_del_address(ifname, addrstr, prefixlen); 416 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname,
|
/system/core/libsysutils/src/ |
H A D | NetlinkEvent.cpp | 161 char addrstr[INET6_ADDRSTRLEN] = ""; local 183 if (maybeLogDuplicateAttribute(*addrstr != '\0', "IFA_ADDRESS", msgtype)) 194 inet_ntop(AF_INET, addr4, addrstr, sizeof(addrstr)); 202 inet_ntop(AF_INET6, addr6, addrstr, sizeof(addrstr)); 228 if (addrstr[0] == '\0') { 237 asprintf(&mParams[0], "ADDRESS=%s/%d", addrstr, ifaddr->ifa_prefixlen);
|
Completed in 137 milliseconds