Lines Matching refs:proto
95 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint8_t extensions, uint32_t states, in sendDumpRequest() argument
107 .sdiag_protocol = proto, in sendDumpRequest()
128 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, uint32_t states) { in sendDumpRequest() argument
132 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
135 int SockDiag::sendDumpRequest(uint8_t proto, uint8_t family, const char *addrstr) { in sendDumpRequest() argument
203 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
206 int SockDiag::readDiagMsg(uint8_t proto, const SockDiag::DestroyFilter& shouldDestroy) { in readDiagMsg() argument
207 NetlinkDumpCallback callback = [this, proto, shouldDestroy] (nlmsghdr *nlh) { in readDiagMsg()
209 if (shouldDestroy(proto, msg)) { in readDiagMsg()
210 sockDestroy(proto, msg); in readDiagMsg()
268 int SockDiag::sockDestroy(uint8_t proto, const inet_diag_msg *msg) { in sockDestroy() argument
280 .sdiag_protocol = proto, in sockDestroy()
296 int SockDiag::destroySockets(uint8_t proto, int family, const char *addrstr) { in destroySockets() argument
301 if (int ret = sendDumpRequest(proto, family, addrstr)) { in destroySockets()
307 return readDiagMsg(proto, destroyAll); in destroySockets()
334 const int proto = IPPROTO_TCP; in destroyLiveSockets() local
339 if (int ret = sendDumpRequest(proto, family, 0, states, iov, iovcnt)) { in destroyLiveSockets()
343 if (int ret = readDiagMsg(proto, destroyFilter)) { in destroyLiveSockets()
353 const int proto = IPPROTO_TCP; in getLiveTcpInfos() local
363 if (int ret = sendDumpRequest(proto, family, extensions, states, iov, ARRAY_SIZE(iov))) { in getLiveTcpInfos()
376 int SockDiag::destroySockets(uint8_t proto, const uid_t uid, bool excludeLoopback) { in destroySockets() argument
389 if (int ret = sendDumpRequest(proto, family, states)) { in destroySockets()
393 if (int ret = readDiagMsg(proto, shouldDestroy)) { in destroySockets()