Lines Matching refs:setsockopt

1277 		if (setsockopt(sock, IPPROTO_IP, IP_NEXTHOP,
1284 Fprintf(stderr, "%s: setsockopt %s\n",
1297 if (setsockopt(sock, IPPROTO_IPV6, IPV6_NEXTHOP,
1299 Fprintf(stderr, "%s: setsockopt %s\n",
1346 if (setsockopt(recv_sock, (family == AF_INET) ? IPPROTO_IP :
1361 Fprintf(stderr, "%s: setsockopt %s\n", progname,
1382 if (setsockopt(send_sock, (family == AF_INET) ?
1399 Fprintf(stderr, "%s: setsockopt %s\n",
1446 if (setsockopt(recv_sock, SOL_SOCKET, SO_RCVBUF, (char *)&int_op,
1448 Fprintf(stderr, "%s: setsockopt SO_RCVBUF %s\n", progname,
1453 if (setsockopt(send_sock, SOL_SOCKET, SO_SNDBUF, (char *)&int_op,
1455 Fprintf(stderr, "%s: setsockopt SO_SNDBUF %s\n", progname,
1461 if (setsockopt(send_sock, SOL_SOCKET, SO_DEBUG, (char *)&on,
1463 Fprintf(stderr, "%s: setsockopt SO_DEBUG %s\n",
1470 if (setsockopt(send_sock, SOL_SOCKET, SO_DONTROUTE, (char *)&on,
1472 Fprintf(stderr, "%s: setsockopt SO_DONTROUTE %s\n",
1482 if (setsockopt(send_sock, IPPROTO_IP, IP_MULTICAST_LOOP,
1484 Fprintf(stderr, "%s: setsockopt "
1492 if (setsockopt(send_sock, IPPROTO_IPV6,
1495 Fprintf(stderr, "%s: setsockopt "
1508 if (setsockopt(send_sock, IPPROTO_IP, IP_MULTICAST_TTL,
1510 Fprintf(stderr, "%s: setsockopt "
1515 if (setsockopt(send_sock, IPPROTO_IP, IP_TTL,
1517 Fprintf(stderr, "%s: setsockopt IP_TTL %s\n",
1526 * setsockopt() is ignored.
1577 if (setsockopt(send_sock, IPPROTO_IP, IP_MULTICAST_IF,
1580 Fprintf(stderr, "%s: setsockopt "
1587 if (setsockopt(send_sock, IPPROTO_IP, IP_PKTINFO,
1589 Fprintf(stderr, "%s: setsockopt "
1607 if (setsockopt(send_sock, IPPROTO_IP, IP_TOS, (char *)&int_op,
1609 Fprintf(stderr, "%s: setsockopt IP_TOS %s\n",
1617 if (setsockopt(send_sock, IPPROTO_IP, IP_DONTFRAG,
1619 Fprintf(stderr, "%s: setsockopt IP_DONTFRAG %s\n",
1624 if (setsockopt(send_sock, IPPROTO_IPV6, IPV6_DONTFRAG,
1626 Fprintf(stderr, "%s: setsockopt IPV6_DONTFRAG %s\n",
1634 if (setsockopt(recv_sock, IPPROTO_IPV6, IPV6_RECVHOPOPTS,
1636 Fprintf(stderr, "%s: setsockopt IPV6_RECVHOPOPTS %s\n",
1641 if (setsockopt(recv_sock, IPPROTO_IPV6, IPV6_RECVDSTOPTS,
1643 Fprintf(stderr, "%s: setsockopt IPV6_RECVDSTOPTS %s\n",
1648 if (setsockopt(recv_sock, IPPROTO_IPV6, IPV6_RECVRTHDR,
1650 Fprintf(stderr, "%s: setsockopt IPV6_RECVRTHDR %s\n",
1657 if (setsockopt(recv_sock, SOL_SOCKET, SO_TIMESTAMP,
1660 "setsockopt SO_TIMESTAMP failed %s", progname,