Lines Matching refs:sendsock
701 int sendsock; local
704 sendsock = s;
715 sendsock = socket(src->sa_family, SOCK_DGRAM, 0);
716 if (sendsock < 0) {
722 protectFromVpn(sendsock);
725 if (setsockopt(sendsock, SOL_SOCKET,
735 close(sendsock);
740 setsockopt(sendsock, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
745 close(sendsock);
749 if (setsockopt_bypass(sendsock, src->sa_family) < 0) {
750 close(sendsock);
754 if (bind(sendsock, (struct sockaddr *)src, sysdep_sa_len(src)) < 0) {
757 close(sendsock);
764 len = sendto(sendsock, buf, buflen, 0, dst, sysdep_sa_len(dst));
769 close(sendsock);
780 close(sendsock);