Home
last modified time | relevance | path

Searched refs:setsockopt (Results 1 – 25 of 124) sorted by relevance

12345

/titanic_50/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c400 if (setsockopt(sock, IPPROTO_IPV6, IPV6_BOUND_IF, (char *)&ifindex, in setup_listen_sock()
408 if (setsockopt(sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, (char *)&hops, in setup_listen_sock()
415 if (setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, (char *)&hops, in setup_listen_sock()
422 if (setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, (char *)&off, in setup_listen_sock()
431 if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP, in setup_listen_sock()
441 if (setsockopt(sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, (char *)&on, in setup_listen_sock()
448 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *)&on, in setup_listen_sock()
456 if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)&recvsize, in setup_listen_sock()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSPosix.c659 err = setsockopt(*sktPtr, SOL_SOCKET, SO_REUSEPORT, &kOn, sizeof(kOn)); in SetupSocket()
661 err = setsockopt(*sktPtr, SOL_SOCKET, SO_REUSEADDR, &kOn, sizeof(kOn)); in SetupSocket()
671 …if (setsockopt(*sktPtr, SOL_SOCKET, SO_RECV_ANYIF, &kOn, sizeof(kOn)) < 0) perror("setsockopt - SO… in SetupSocket()
683 err = setsockopt(*sktPtr, IPPROTO_IP, IP_PKTINFO, &kOn, sizeof(kOn)); in SetupSocket()
687 err = setsockopt(*sktPtr, IPPROTO_IP, IP_RECVDSTADDR, &kOn, sizeof(kOn)); in SetupSocket()
693 err = setsockopt(*sktPtr, IPPROTO_IP, IP_RECVIF, &kOn, sizeof(kOn)); in SetupSocket()
704 setsockopt(*sktPtr, IPPROTO_IP, IP_RECVTTL, &kOn, sizeof(kOn)); in SetupSocket()
714 err = setsockopt(*sktPtr, IPPROTO_IP, IP_ADD_MEMBERSHIP, &imr, sizeof(imr)); in SetupSocket()
721 …err = setsockopt(*sktPtr, IPPROTO_IP, IP_MULTICAST_IF, &((struct sockaddr_in*)intfAddr)->sin_addr,… in SetupSocket()
728 … err = setsockopt(*sktPtr, IPPROTO_IP, IP_TTL, &kIntTwoFiveFive, sizeof(kIntTwoFiveFive)); in SetupSocket()
[all …]
/titanic_50/usr/src/lib/libsocket/inet/
H A Dbindresvport.c93 if (setsockopt(sd, level, optname, &optval, sizeof (optval)) < 0) { in bindresvport()
107 (void) setsockopt(sd, level, optname, &optval, sizeof (optval)); in bindresvport()
H A Drcmd.c445 if (setsockopt(s, SOL_SOCKET, SO_EXCLBIND, &on, sizeof (on)) < 0) { in _rresvport_addr()
459 (void) setsockopt(s, SOL_SOCKET, SO_EXCLBIND, &off, in _rresvport_addr()
474 if (setsockopt(s, IPPROTO_TCP, TCP_ANONPRIVBIND, &on, in _rresvport_addr()
506 (void) setsockopt(s, IPPROTO_TCP, TCP_ANONPRIVBIND, &off, in _rresvport_addr()
508 (void) setsockopt(s, SOL_SOCKET, SO_EXCLBIND, &off, in _rresvport_addr()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dmain.c357 if (setsockopt(rt_sock, SOL_SOCKET, SO_USELOOPBACK, in main()
687 if (setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &on, sizeof (on)) < 0) in fix_sock()
692 if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, in fix_sock()
698 if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, in fix_sock()
739 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, in open_rip_sock()
743 if (setsockopt(s, IPPROTO_IP, IP_RECVIF, &on, sizeof (on))) in open_rip_sock()
782 if (setsockopt(rip_sock, IPPROTO_IP, in rip_off()
813 if ((setsockopt(rip_sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, in rip_mcast_on()
832 if ((setsockopt(rip_sock, IPPROTO_IP, IP_DROP_MEMBERSHIP, in rip_mcast_off()
H A Drdisc.c171 if (setsockopt(rdisc_sock, IPPROTO_IP, IP_RECVIF, &on, in get_rdisc_sock()
175 if (setsockopt(rdisc_sock, IPPROTO_IP, IP_MULTICAST_TTL, in get_rdisc_sock()
248 if (setsockopt(rdisc_sock, IPPROTO_IP, in set_rdisc_mg()
258 if (setsockopt(rdisc_sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, in set_rdisc_mg()
271 if (setsockopt(rdisc_sock, IPPROTO_IP, in set_rdisc_mg()
281 if (setsockopt(rdisc_sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, in set_rdisc_mg()
1068 setsockopt(rdisc_sock, IPPROTO_IP, IP_MULTICAST_IF, &addr, in send_rdisc()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping.c1277 if (setsockopt(sock, IPPROTO_IP, IP_NEXTHOP, in set_nexthop()
1297 if (setsockopt(sock, IPPROTO_IPV6, IPV6_NEXTHOP, in set_nexthop()
1346 if (setsockopt(recv_sock, (family == AF_INET) ? IPPROTO_IP : in setup_socket()
1382 if (setsockopt(send_sock, (family == AF_INET) ? in setup_socket()
1446 if (setsockopt(recv_sock, SOL_SOCKET, SO_RCVBUF, (char *)&int_op, in setup_socket()
1453 if (setsockopt(send_sock, SOL_SOCKET, SO_SNDBUF, (char *)&int_op, in setup_socket()
1461 if (setsockopt(send_sock, SOL_SOCKET, SO_DEBUG, (char *)&on, in setup_socket()
1470 if (setsockopt(send_sock, SOL_SOCKET, SO_DONTROUTE, (char *)&on, in setup_socket()
1482 if (setsockopt(send_sock, IPPROTO_IP, IP_MULTICAST_LOOP, in setup_socket()
1492 if (setsockopt(send_sock, IPPROTO_IPV6, in setup_socket()
[all …]
/titanic_50/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_net.c211 iscsi_net->setsockopt = iscsi_net_setsockopt; in iscsi_net_init()
239 ret += iscsi_net->setsockopt(socket, IPPROTO_TCP, in iscsi_net_set_connect_options()
242 ret += iscsi_net->setsockopt(socket, IPPROTO_TCP, in iscsi_net_set_connect_options()
245 ret += iscsi_net->setsockopt(socket, IPPROTO_TCP, TCP_ABORT_THRESHOLD, in iscsi_net_set_connect_options()
247 ret += iscsi_net->setsockopt(socket, IPPROTO_TCP, TCP_NODELAY, in iscsi_net_set_connect_options()
249 ret += iscsi_net->setsockopt(socket, SOL_SOCKET, SO_RCVBUF, in iscsi_net_set_connect_options()
251 ret += iscsi_net->setsockopt(socket, SOL_SOCKET, SO_SNDBUF, in iscsi_net_set_connect_options()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c336 if (setsockopt(sd, IPPROTO_IP, IP_NEXTHOP, next_hop, in tcp_query()
342 if (setsockopt(sd, IPPROTO_IPV6, IPV6_NEXTHOP, in tcp_query()
662 if (setsockopt(send_sd, IPPROTO_IP, IP_NEXTHOP, in udp_query()
668 if (setsockopt(send_sd, IPPROTO_IPV6, IPV6_NEXTHOP, in udp_query()
782 if (setsockopt(sd, IPPROTO_IP, IP_NEXTHOP, next_hop, in ping_query()
788 if (setsockopt(sd, IPPROTO_IPV6, IPV6_NEXTHOP, in ping_query()
/titanic_50/usr/src/lib/libc/common/sys/
H A D_so_setsockopt.s38 SYSCALL2_RVAL1(_so_setsockopt,setsockopt)
/titanic_50/usr/src/lib/libilb/common/
H A Dilb_comm.c89 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &sobufsz, in ilb_open()
95 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &sobufsz, in ilb_open()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rwhod.c234 if (setsockopt(s, SOL_SOCKET, SO_BROADCAST, &on, sizeof (on)) < 0) { in main()
458 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF, in onalrm()
516 if (setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in configure()
523 if (setsockopt(s, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, in configure()
629 if (setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in configure()
/titanic_50/usr/src/lib/libnisdb/
H A Dldap_cto.c66 if (setsockopt(ret, IPPROTO_TCP, TCP_CONN_ABORT_THRESHOLD, in socket()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute.c1238 if (setsockopt(rsock, SOL_SOCKET, SO_DEBUG, (char *)&on, in setup_socket()
1246 if (setsockopt(rsock, SOL_SOCKET, SO_DONTROUTE, (char *)&on, in setup_socket()
1256 if (setsockopt(rsock, IPPROTO_IPV6, IPV6_RECVPKTINFO, in setup_socket()
1263 if (setsockopt(rsock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, in setup_socket()
1319 if (setsockopt(ssock, SOL_SOCKET, SO_SNDBUF, (char *)&packet_len, in setup_socket()
1326 if (setsockopt(ssock, IPPROTO_IP, IP_HDRINCL, (char *)&on, in setup_socket()
1335 if (setsockopt(ssock, SOL_SOCKET, SO_DEBUG, (char *)&on, in setup_socket()
1343 if (setsockopt(ssock, SOL_SOCKET, SO_DONTROUTE, in setup_socket()
1359 if (setsockopt(ssock, IPPROTO_IP, IP_TOS, (char *)&int_op, in setup_socket()
1369 if (setsockopt(ssock, IPPROTO_IP, IP_DONTFRAG, in setup_socket()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_tables.c924 if (setsockopt(pii->pii_probe_sock, IPPROTO_IPV6, IPV6_MULTICAST_IF, in phyint_inst_v6_sockinit()
931 if (setsockopt(pii->pii_probe_sock, IPPROTO_IPV6, IPV6_BOUND_IF, in phyint_inst_v6_sockinit()
938 if (setsockopt(pii->pii_probe_sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, in phyint_inst_v6_sockinit()
945 if (setsockopt(pii->pii_probe_sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, in phyint_inst_v6_sockinit()
952 if (setsockopt(pii->pii_probe_sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, in phyint_inst_v6_sockinit()
965 if (setsockopt(pii->pii_probe_sock, IPPROTO_ICMPV6, ICMP6_FILTER, in phyint_inst_v6_sockinit()
973 if (setsockopt(pii->pii_probe_sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, in phyint_inst_v6_sockinit()
981 if (setsockopt(pii->pii_probe_sock, SOL_SOCKET, SO_TIMESTAMP, in phyint_inst_v6_sockinit()
1048 if (setsockopt(pii->pii_probe_sock, IPPROTO_IP, IP_BOUND_IF, in phyint_inst_v4_sockinit()
1055 if (setsockopt(pii->pii_probe_sock, IPPROTO_IP, IP_MULTICAST_IF, in phyint_inst_v4_sockinit()
[all …]
/titanic_50/usr/src/lib/libwrap/
H A Dfix_options.c113 if (setsockopt(fd, ipproto, IP_OPTIONS, (char *) 0, optsize) != 0) {
/titanic_50/usr/src/lib/libbc/libc/sys/common/
H A Dsetsockopt.c47 setsockopt(int s, int level, int optname, char *optval, int optlen) in setsockopt() function
/titanic_50/usr/src/test/os-tests/tests/spoof-ras/
H A Dspoof-ras.c151 if (setsockopt(s, IPPROTO_IPV6, IPV6_UNICAST_HOPS, in spoof_set_max_hops()
156 if (setsockopt(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, in spoof_set_max_hops()
662 if (setsockopt(s, IPPROTO_IPV6, IPV6_BOUND_IF, in main()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dftp.c265 if (timeout && setsockopt(s, IPPROTO_TCP, TCP_ABORT_THRESHOLD, in hookup()
347 if (setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (char *)&on, in hookup()
1483 if (timeout && setsockopt(data, IPPROTO_TCP, in initconn()
1488 setsockopt(data, SOL_SOCKET, SO_DEBUG, (char *)&on, in initconn()
1496 if (setsockopt(data, SOL_SOCKET, SO_SNDBUF, in initconn()
1499 if (setsockopt(data, SOL_SOCKET, SO_RCVBUF, in initconn()
1602 if (setsockopt(data, SOL_SOCKET, SO_REUSEADDR, in initconn()
1612 if (timeout && setsockopt(data, IPPROTO_TCP, TCP_ABORT_THRESHOLD, in initconn()
1616 setsockopt(data, SOL_SOCKET, SO_DEBUG, in initconn()
1624 if (setsockopt(data, SOL_SOCKET, SO_SNDBUF, in initconn()
[all …]
/titanic_50/usr/src/cmd/vscan/vscand/
H A Dvs_eng.c732 (setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, in vs_eng_connect()
734 (setsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, in vs_eng_connect()
736 (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, in vs_eng_connect()
/titanic_50/usr/src/cmd/dtrace/test/tst/common/mib/
H A Dtst.tcp.ksh88 setsockopt(S, SOL_SOCKET, SO_REUSEADDR, 1)
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/
H A Drdate.c134 if (setsockopt(s, IPPROTO_TCP, TCP_CONN_ABORT_THRESHOLD, in main()
/titanic_50/usr/src/stand/lib/fs/nfs/
H A Drpc.c240 (void) setsockopt(s, SOL_SOCKET, SO_DONTROUTE, in brpc_call()
336 (void) setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (void *)&xdelay, in brpc_call()
/titanic_50/usr/src/lib/libsctp/common/
H A Dsctp.c90 return (setsockopt(sock, IPPROTO_SCTP, SCTP_ADD_ADDR, addrs, in sctp_bindx()
93 return (setsockopt(sock, IPPROTO_SCTP, SCTP_REM_ADDR, addrs, in sctp_bindx()
/titanic_50/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dutil.c435 (void) setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (int)); in bind_sock()
463 (void) setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (int)); in bind_sock_v6()

12345