Lines Matching refs:sendsock
690 int sendsock; local
693 sendsock = s;
704 sendsock = socket(src->sa_family, SOCK_DGRAM, 0);
705 if (sendsock < 0) {
710 if (setsockopt(sendsock, SOL_SOCKET,
720 close(sendsock);
725 setsockopt(sendsock, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
730 close(sendsock);
734 if (setsockopt_bypass(sendsock, src->sa_family) < 0) {
735 close(sendsock);
739 if (bind(sendsock, (struct sockaddr *)src, sysdep_sa_len(src)) < 0) {
742 close(sendsock);
749 len = sendto(sendsock, buf, buflen, 0, dst, sysdep_sa_len(dst));
754 close(sendsock);
765 close(sendsock);