Lines Matching refs:sockfd
126 int netdClientAccept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { in netdClientAccept4() argument
127 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags); in netdClientAccept4()
149 int netdClientConnect(int sockfd, const sockaddr* addr, socklen_t addrlen) { in netdClientConnect() argument
150 const bool shouldSetFwmark = shouldMarkSocket(sockfd, addr); in netdClientConnect()
156 error = FwmarkClient().send(&command, sockfd, &connectInfo); in netdClientConnect()
158 error = FwmarkClient().send(&command, sockfd, nullptr); in netdClientConnect()
168 const int ret = libcConnect(sockfd, addr, addrlen); in netdClientConnect()
179 FwmarkClient().send(&command, sockfd, &connectInfo); in netdClientConnect()
204 int netdClientSendmmsg(int sockfd, const mmsghdr* msgs, unsigned int msgcount, int flags) { in netdClientSendmmsg() argument
205 if (propertyValueIsTrue(PROPERTY_REDIRECT_SOCKET_CALLS_HOOKED) && !checkSocket(sockfd)) { in netdClientSendmmsg()
212 FwmarkClient().send(&command, sockfd, &sendmmsgInfo); in netdClientSendmmsg()
216 return libcSendmmsg(sockfd, msgs, msgcount, flags); in netdClientSendmmsg()
219 ssize_t netdClientSendmsg(int sockfd, const msghdr* msg, unsigned int flags) { in netdClientSendmsg() argument
220 if (propertyValueIsTrue(PROPERTY_REDIRECT_SOCKET_CALLS_HOOKED) && !checkSocket(sockfd)) { in netdClientSendmsg()
227 FwmarkClient().send(&command, sockfd, &sendmsgInfo); in netdClientSendmsg()
231 return libcSendmsg(sockfd, msg, flags); in netdClientSendmsg()
234 int netdClientSendto(int sockfd, const void* buf, size_t bufsize, int flags, const sockaddr* addr, in netdClientSendto() argument
236 if (propertyValueIsTrue(PROPERTY_REDIRECT_SOCKET_CALLS_HOOKED) && !checkSocket(sockfd)) { in netdClientSendto()
240 FwmarkClient().send(&command, sockfd, &sendtoInfo); in netdClientSendto()
243 return libcSendto(sockfd, buf, bufsize, flags, addr, addrlen); in netdClientSendto()