Lines Matching defs:on
172 * Check to see if IPv6 is broken, as is common on Linux.
256 int s, on;
286 on = 1;
287 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0) {
309 on = 1;
310 if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0) {
334 int s, on;
365 on = 1;
366 if (setsockopt(s, IPPROTO_IPV6, optname, &on, sizeof(on)) < 0) {
470 int on = 1;
472 ret = ioctl(fd, FIONBIO, (char *)&on);
483 "ioctl(%d, FIONBIO, &on): %s", fd,
632 int on = 1;
668 on = 1;
669 if (setsockopt(s, IPPROTO_IP, IP_RECVTOS, &on, sizeof(on)) == 0)
697 int on = 1;
731 on = 1;
732 if (setsockopt(s, IPPROTO_IPV6, IPV6_RECVTCLASS, &on, sizeof(on)) == 0)