Lines Matching refs:setsockopt
400 if (setsockopt(sock, IPPROTO_IPV6, IPV6_BOUND_IF, (char *)&ifindex,
403 "setup_listen_sock: setsockopt: IPV6_BOUND_IF: %m");
408 if (setsockopt(sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, (char *)&hops,
411 "setup_listen_sock: setsockopt: IPV6_UNICAST_HOPS: %m");
415 if (setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (char *)&hops,
418 "setup_listen_sock: setsockopt: IPV6_MULTICAST_HOPS: %m");
422 if (setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, (char *)&off,
425 "setup_listen_sock: setsockopt: IPV6_MULTICAST_LOOP: %m");
431 if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP,
435 "setup_listen_sock: setsockopt: "
441 if (setsockopt(sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, (char *)&on,
444 "setup_listen_sock: setsockopt: IPV6_RECVHOPLIMIT: %m");
448 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *)&on,
451 "setup_listen_sock: setsockopt: SO_REUSEADDR: %m");
456 if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)&recvsize,
458 syslog(LOG_ERR, "setup_listen_sock: setsockopt: SO_RCVBUF: %m");