Searched refs:setsockopt (Results 1 - 25 of 110) sorted by relevance

12345

/illumos-gate/usr/src/lib/libc/common/sys/
H A D_so_setsockopt.s38 SYSCALL2_RVAL1(_so_setsockopt,setsockopt)
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbindresvport.c93 if (setsockopt(sd, level, optname, &optval, sizeof (optval)) < 0) {
107 (void) setsockopt(sd, level, optname, &optval, sizeof (optval));
H A Drcmd.c445 if (setsockopt(s, SOL_SOCKET, SO_EXCLBIND, &on, sizeof (on)) < 0) {
459 (void) setsockopt(s, SOL_SOCKET, SO_EXCLBIND, &off,
474 if (setsockopt(s, IPPROTO_TCP, TCP_ANONPRIVBIND, &on,
506 (void) setsockopt(s, IPPROTO_TCP, TCP_ANONPRIVBIND, &off,
508 (void) setsockopt(s, SOL_SOCKET, SO_EXCLBIND, &off,
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_cto.c66 if (setsockopt(ret, IPPROTO_TCP, TCP_CONN_ABORT_THRESHOLD,
69 "setsockopt(IPPROTO_TCP/TCP_CONN_ABORT_THRESHOLD, %d) => errno = %d",
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c400 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
[all...]
/illumos-gate/usr/src/lib/libwrap/
H A Dfix_options.c113 if (setsockopt(fd, ipproto, IP_OPTIONS, (char *) 0, optsize) != 0) {
114 syslog(LOG_ERR, "setsockopt IP_OPTIONS NULL: %m");
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dsetsockopt.c47 setsockopt(int s, int level, int optname, char *optval, int optlen) function
/illumos-gate/usr/src/lib/libilb/common/
H A Dilb_comm.c89 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &sobufsz,
95 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &sobufsz,
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSPosix.c663 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(*sktPt
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drdate.c134 if (setsockopt(s, IPPROTO_TCP, TCP_CONN_ABORT_THRESHOLD,
136 perror("setsockopt TCP_CONN_ABORT_THRESHOLD");
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/mib/
H A Dtst.tcp.ksh88 setsockopt(S, SOL_SOCKET, SO_REUSEADDR, 1)
89 or die "setsockopt() failed: \$!";
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping.c1277 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_RCVBU
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_net.c85 * setsockopt - Sets socket option for specified socket.
211 iscsi_net->setsockopt = iscsi_net_setsockopt;
239 ret += iscsi_net->setsockopt(socket, IPPROTO_TCP,
242 ret += iscsi_net->setsockopt(socket, IPPROTO_TCP,
245 ret += iscsi_net->setsockopt(socket, IPPROTO_TCP, TCP_ABORT_THRESHOLD,
247 ret += iscsi_net->setsockopt(socket, IPPROTO_TCP, TCP_NODELAY,
249 ret += iscsi_net->setsockopt(socket, SOL_SOCKET, SO_RCVBUF,
251 ret += iscsi_net->setsockopt(socket, SOL_SOCKET, SO_SNDBUF,
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c336 if (setsockopt(sd, IPPROTO_IP, IP_NEXTHOP, next_hop,
342 if (setsockopt(sd, IPPROTO_IPV6, IPV6_NEXTHOP,
662 if (setsockopt(send_sd, IPPROTO_IP, IP_NEXTHOP,
668 if (setsockopt(send_sd, IPPROTO_IPV6, IPV6_NEXTHOP,
782 if (setsockopt(sd, IPPROTO_IP, IP_NEXTHOP, next_hop,
788 if (setsockopt(sd, IPPROTO_IPV6, IPV6_NEXTHOP,
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/slpd/
H A Dslpd.c191 (void) setsockopt(lfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dmain.c357 if (setsockopt(rt_sock, SOL_SOCKET, SO_USELOOPBACK,
359 LOGERR("setsockopt(SO_USELOOPBACK,0)");
687 if (setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &on, sizeof (on)) < 0)
688 msglog("setsockopt(%s,SO_BROADCAST): %s",
692 if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF,
694 msglog("setsockopt(%s,SO_RCVBUF=%d): %s",
698 if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF,
704 msglog("setsockopt(%s,SO_RCVBUF = %d): %s",
739 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL,
741 DBGERR(_B_TRUE, "rip_sock setsockopt(IP_MULTICAST_TT
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rwhod.c234 if (setsockopt(s, SOL_SOCKET, SO_BROADCAST, &on, sizeof (on)) < 0) {
235 syslog(LOG_ERR, "main: setsockopt SO_BROADCAST: %m");
458 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF,
462 "onalrm: setsockopt IP_MULTICAST_IF: %m");
516 if (setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq,
519 "configure: setsockopt IP_ADD_MEMBERSHIP: %m");
523 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl,
526 "configure: setsockopt IP_MULTICAST_TTL: %m");
629 if (setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq,
633 "setsockopt IP_ADD_MEMBERSHI
[all...]
/illumos-gate/usr/src/cmd/vscan/vscand/
H A Dvs_eng.c732 (setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY,
734 (setsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE,
736 (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR,
/illumos-gate/usr/src/test/os-tests/tests/spoof-ras/
H A Dspoof-ras.c151 if (setsockopt(s, IPPROTO_IPV6, IPV6_UNICAST_HOPS,
156 if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS,
662 if (setsockopt(s, IPPROTO_IPV6, IPV6_BOUND_IF,
/illumos-gate/usr/src/lib/libstmfproxy/common/
H A Dstmftransport.c92 if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &on,
95 "setsockopt() failed: %d", errno);
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp_mpathd.c71 (void) setsockopt(fd, IPPROTO_TCP, TCP_ANONPRIVBIND, &on, sizeof (on));
/illumos-gate/usr/src/cmd/sendmail/aux/
H A Dmconnect.c157 (void) setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, (char *)&on,
/illumos-gate/usr/src/man/man3xnet/
H A DMakefile46 setsockopt.3xnet \
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute.c1238 if (setsockopt(rsock, SOL_SOCKET, SO_DEBUG, (char *)&on,
1246 if (setsockopt(rsock, SOL_SOCKET, SO_DONTROUTE, (char *)&on,
1256 if (setsockopt(rsock, IPPROTO_IPV6, IPV6_RECVPKTINFO,
1263 if (setsockopt(rsock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT,
1319 if (setsockopt(ssock, SOL_SOCKET, SO_SNDBUF, (char *)&packet_len,
1326 if (setsockopt(ssock, IPPROTO_IP, IP_HDRINCL, (char *)&on,
1335 if (setsockopt(ssock, SOL_SOCKET, SO_DEBUG, (char *)&on,
1343 if (setsockopt(ssock, SOL_SOCKET, SO_DONTROUTE,
1359 if (setsockopt(ssock, IPPROTO_IP, IP_TOS, (char *)&int_op,
1369 if (setsockopt(ssoc
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dftp.c265 if (timeout && setsockopt(s, IPPROTO_TCP, TCP_ABORT_THRESHOLD,
267 perror("ftp: setsockopt (TCP_ABORT_THRESHOLD)");
347 if (setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (char *)&on,
349 perror("ftp: setsockopt (SO_OOBINLINE)");
1483 if (timeout && setsockopt(data, IPPROTO_TCP,
1486 perror("ftp: setsockopt (TCP_ABORT_THRESHOLD)");
1488 setsockopt(data, SOL_SOCKET, SO_DEBUG, (char *)&on,
1490 perror("setsockopt (ignored)");
1496 if (setsockopt(data, SOL_SOCKET, SO_SNDBUF,
1498 perror("ftp: setsockopt (SO_SNDBU
[all...]

Completed in 125 milliseconds

12345