Lines Matching refs:proto
110 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint8_t extensions, uint32_t states, in sendDumpRequest() argument
122 .sdiag_protocol = proto, in sendDumpRequest()
143 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states) { in sendDumpRequest() argument
147 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
150 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { in sendDumpRequest() argument
216 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
219 int SockDiag::readDiagMsg(uint8_t proto, const SockDiag::DestroyFilter& shouldDestroy) { in readDiagMsg() argument
220 NetlinkDumpCallback callback = [this, proto, shouldDestroy] (nlmsghdr *nlh) { in readDiagMsg()
222 if (shouldDestroy(proto, msg)) { in readDiagMsg()
223 sockDestroy(proto, msg); in readDiagMsg()
281 int SockDiag::sockDestroy(uint8_t proto, const inet_diag_msg *msg) { in sockDestroy() argument
293 .sdiag_protocol = proto, in sockDestroy()
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()
322 return readDiagMsg(proto, destroyAll); in destroySockets()
353 const int proto = IPPROTO_TCP; in destroyLiveSockets() local
358 if (int ret = sendDumpRequest(proto, family, 0, states, iov, iovcnt)) { in destroyLiveSockets()
362 if (int ret = readDiagMsg(proto, destroyFilter)) { in destroyLiveSockets()
372 const int proto = IPPROTO_TCP; in getLiveTcpInfos() local
382 if (int ret = sendDumpRequest(proto, family, extensions, states, iov, ARRAY_SIZE(iov))) { in getLiveTcpInfos()
395 int SockDiag::destroySockets(uint8_t proto, const uid_t uid, bool excludeLoopback) { in destroySockets() argument
408 if (int ret = sendDumpRequest(proto, family, states)) { in destroySockets()
412 if (int ret = readDiagMsg(proto, shouldDestroy)) { in destroySockets()