Lines Matching refs:family
108 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint8_t extensions, uint32_t states, in sendDumpRequest() argument
119 .sdiag_family = family, in sendDumpRequest()
141 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states) { in sendDumpRequest() argument
145 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
148 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { in sendDumpRequest() argument
163 if (res->ai_family == AF_INET && family == AF_INET) { in sendDumpRequest()
167 } else if (res->ai_family == AF_INET && family == AF_INET6) { in sendDumpRequest()
172 } else if (res->ai_family == AF_INET6 && family == AF_INET6) { in sendDumpRequest()
198 family, in sendDumpRequest()
214 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); 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()
349 for (const int family : {AF_INET, AF_INET6}) { in destroyLiveSockets()
350 const char *familyName = (family == AF_INET) ? "IPv4" : "IPv6"; in destroyLiveSockets()
351 if (int ret = sendDumpRequest(proto, family, 0, states, iov, iovcnt)) { in destroyLiveSockets()
373 for (const int family : {AF_INET, AF_INET6}) { in getLiveTcpInfos()
374 const char *familyName = (family == AF_INET) ? "IPv4" : "IPv6"; in getLiveTcpInfos()
375 if (int ret = sendDumpRequest(proto, family, extensions, states, iov, ARRAY_SIZE(iov))) { in getLiveTcpInfos()
398 for (const int family : {AF_INET, AF_INET6}) { in destroySockets()
399 const char *familyName = family == AF_INET ? "IPv4" : "IPv6"; in destroySockets()
401 if (int ret = sendDumpRequest(proto, family, states)) { in destroySockets()