Lines Matching refs:sockfd
127 int netdClientAccept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { in netdClientAccept4() argument
128 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags); in netdClientAccept4()
150 int netdClientConnect(int sockfd, const sockaddr* addr, socklen_t addrlen) { in netdClientConnect() argument
151 const bool shouldSetFwmark = shouldMarkSocket(sockfd, addr); in netdClientConnect()
155 int error = FwmarkClient().send(&command, sockfd, &connectInfo); in netdClientConnect()
164 const int ret = libcConnect(sockfd, addr, addrlen); in netdClientConnect()
175 FwmarkClient().send(&command, sockfd, &connectInfo); in netdClientConnect()
200 int netdClientSendmmsg(int sockfd, const mmsghdr* msgs, unsigned int msgcount, int flags) { in netdClientSendmmsg() argument
201 if (propertyValueIsTrue(PROPERTY_REDIRECT_SOCKET_CALLS_HOOKED) && !checkSocket(sockfd)) { in netdClientSendmmsg()
208 FwmarkClient().send(&command, sockfd, &sendmmsgInfo); in netdClientSendmmsg()
212 return libcSendmmsg(sockfd, msgs, msgcount, flags); in netdClientSendmmsg()
215 ssize_t netdClientSendmsg(int sockfd, const msghdr* msg, unsigned int flags) { in netdClientSendmsg() argument
216 if (propertyValueIsTrue(PROPERTY_REDIRECT_SOCKET_CALLS_HOOKED) && !checkSocket(sockfd)) { in netdClientSendmsg()
223 FwmarkClient().send(&command, sockfd, &sendmsgInfo); in netdClientSendmsg()
227 return libcSendmsg(sockfd, msg, flags); in netdClientSendmsg()
230 int netdClientSendto(int sockfd, const void* buf, size_t bufsize, int flags, const sockaddr* addr, in netdClientSendto() argument
232 if (propertyValueIsTrue(PROPERTY_REDIRECT_SOCKET_CALLS_HOOKED) && !checkSocket(sockfd)) { in netdClientSendto()
236 FwmarkClient().send(&command, sockfd, &sendtoInfo); in netdClientSendto()
239 return libcSendto(sockfd, buf, bufsize, flags, addr, addrlen); in netdClientSendto()