Lines Matching refs:setsockopt
663 err = setsockopt(*sktPtr, SOL_SOCKET, SO_REUSEADDR, &kOn, sizeof(kOn));
665 err = setsockopt(*sktPtr, SOL_SOCKET, SO_REUSEPORT, &kOn, sizeof(kOn));
669 if (err < 0) { err = errno; perror("setsockopt - SO_REUSExxxx"); }
675 if (setsockopt(*sktPtr, SOL_SOCKET, SO_RECV_ANYIF, &kOn, sizeof(kOn)) < 0) perror("setsockopt - SO_RECV_ANYIF");
687 err = setsockopt(*sktPtr, IPPROTO_IP, IP_PKTINFO, &kOn, sizeof(kOn));
688 if (err < 0) { err = errno; perror("setsockopt - IP_PKTINFO"); }
691 err = setsockopt(*sktPtr, IPPROTO_IP, IP_RECVDSTADDR, &kOn, sizeof(kOn));
692 if (err < 0) { err = errno; perror("setsockopt - IP_RECVDSTADDR"); }
697 err = setsockopt(*sktPtr, IPPROTO_IP, IP_RECVIF, &kOn, sizeof(kOn));
698 if (err < 0) { err = errno; perror("setsockopt - IP_RECVIF"); }
708 setsockopt(*sktPtr, IPPROTO_IP, IP_RECVTTL, &kOn, sizeof(kOn));
718 err = setsockopt(*sktPtr, IPPROTO_IP, IP_ADD_MEMBERSHIP, &imr, sizeof(imr));
719 if (err < 0) { err = errno; perror("setsockopt - IP_ADD_MEMBERSHIP"); }
725 err = setsockopt(*sktPtr, IPPROTO_IP, IP_MULTICAST_IF, &((struct sockaddr_in*)intfAddr)->sin_addr, sizeof(struct in_addr));
726 if (err < 0) { err = errno; perror("setsockopt - IP_MULTICAST_IF"); }
732 err = setsockopt(*sktPtr, IPPROTO_IP, IP_TTL, &kIntTwoFiveFive, sizeof(kIntTwoFiveFive));
733 if (err < 0) { err = errno; perror("setsockopt - IP_TTL"); }
740 err = setsockopt(*sktPtr, IPPROTO_IP, IP_MULTICAST_TTL, &kByteTwoFiveFive, sizeof(kByteTwoFiveFive));
742 err = setsockopt(*sktPtr, IPPROTO_IP, IP_MULTICAST_TTL, &kIntTwoFiveFive, sizeof(kIntTwoFiveFive));
743 if (err < 0) { err = errno; perror("setsockopt - IP_MULTICAST_TTL"); }
765 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_RECVPKTINFO, &kOn, sizeof(kOn));
766 if (err < 0) { err = errno; perror("setsockopt - IPV6_RECVPKTINFO"); }
771 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_2292_PKTINFO, &kOn, sizeof(kOn));
772 if (err < 0) { err = errno; perror("setsockopt - IPV6_PKTINFO"); }
780 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, &kOn, sizeof(kOn));
781 if (err < 0) { err = errno; perror("setsockopt - IPV6_RECVHOPLIMIT"); }
786 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_2292_HOPLIMIT, &kOn, sizeof(kOn));
787 if (err < 0) { err = errno; perror("setsockopt - IPV6_HOPLIMIT"); }
797 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_JOIN_GROUP, &imr6, sizeof(imr6));
802 perror("setsockopt - IPV6_JOIN_GROUP");
810 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_MULTICAST_IF, &multicast_if, sizeof(multicast_if));
811 if (err < 0) { err = errno; perror("setsockopt - IPV6_MULTICAST_IF"); }
818 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_V6ONLY, &kOn, sizeof(kOn));
819 if (err < 0) { err = errno; perror("setsockopt - IPV6_V6ONLY"); }
825 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &kIntTwoFiveFive, sizeof(kIntTwoFiveFive));
826 if (err < 0) { err = errno; perror("setsockopt - IPV6_UNICAST_HOPS"); }
833 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &kByteTwoFiveFive, sizeof(kByteTwoFiveFive));
835 err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &kIntTwoFiveFive, sizeof(kIntTwoFiveFive));
836 if (err < 0) { err = errno; perror("setsockopt - IPV6_MULTICAST_HOPS"); }