| /netbsd-src/sys/compat/common/ |
| H A D | kern_uipc_socket_50.c | 126 int optval, error; in uipc_socket_50_getopt1() local 133 optval = (opt == SO_OSNDTIMEO ? in uipc_socket_50_getopt1() 136 otv.tv_sec = optval / hz; in uipc_socket_50_getopt1() 137 otv.tv_usec = (optval % hz) * tick; in uipc_socket_50_getopt1() 155 int optval, error; in uipc_socket_50_setopt1() local 181 optval = tv.tv_sec * hz + tv.tv_usec / tick; in uipc_socket_50_setopt1() 182 if (optval == 0 && tv.tv_usec != 0) in uipc_socket_50_setopt1() 183 optval = 1; in uipc_socket_50_setopt1() 187 so->so_snd.sb_timeo = optval; in uipc_socket_50_setopt1() 190 so->so_rcv.sb_timeo = optval; in uipc_socket_50_setopt1() [all …]
|
| /netbsd-src/sys/netinet6/ |
| H A D | ip6_output.c | 1306 int error, optval; in ip6_ctloutput() local 1315 error = optval = 0; in ip6_ctloutput() 1386 error = sockopt_getint(sopt, &optval); in ip6_ctloutput() 1391 if (optval < -1 || optval >= 256) in ip6_ctloutput() 1395 in6p_hops6(inp) = optval; in ip6_ctloutput() 1400 if (optval) \ in ip6_ctloutput() 1410 if (optval) \ in ip6_ctloutput() 1443 (u_char *)&optval, in ip6_ctloutput() 1444 sizeof(optval), in ip6_ctloutput() 1532 if (!optval) in ip6_ctloutput() [all …]
|
| H A D | raw_ip6.c | 541 int optval; in rip6_ctloutput() local 545 optval = 1; in rip6_ctloutput() 546 error = sockopt_set(sopt, &optval, sizeof(optval)); in rip6_ctloutput() 548 error = sockopt_getint(sopt, &optval); in rip6_ctloutput() 551 if (optval == 0) in rip6_ctloutput()
|
| /netbsd-src/sys/netinet/ |
| H A D | ip_output.c | 1088 int optval = 0, error = 0; in ip_ctloutput() local 1119 error = sockopt_getint(sopt, &optval); in ip_ctloutput() 1125 ip->ip_tos = optval; in ip_ctloutput() 1129 ip->ip_ttl = optval; in ip_ctloutput() 1133 if (optval > 0 && optval <= MAXTTL) in ip_ctloutput() 1134 in4p_ip_minttl(inp) = optval; in ip_ctloutput() 1139 if (optval) \ in ip_ctloutput() 1180 error = sockopt_getint(sopt, &optval); in ip_ctloutput() 1229 error = sockopt_getint(sopt, &optval); in ip_ctloutput() 1233 switch (optval) { in ip_ctloutput() [all …]
|
| H A D | raw_ip.c | 407 int optval; in rip_ctloutput() local 411 optval = (inp->inp_flags & INP_NOHEADER) ? 1 : 0; in rip_ctloutput() 412 error = sockopt_set(sopt, &optval, sizeof(optval)); in rip_ctloutput() 414 error = sockopt_getint(sopt, &optval); in rip_ctloutput() 417 if (optval) { in rip_ctloutput() 432 error = sockopt_getint(sopt, &optval); in rip_ctloutput() 435 if (optval) in rip_ctloutput() 465 optval = inp->inp_flags & INP_HDRINCL; in rip_ctloutput() 466 error = sockopt_set(sopt, &optval, sizeof(optval)); in rip_ctloutput()
|
| H A D | dccp_usrreq.c | 972 int optval; in dccp_optsset() local 977 error = sockopt_getint(sopt, &optval); in dccp_optsset() 979 if (optval == 2 || optval == 3 || optval == 0) { in dccp_optsset() 980 dp->pref_cc = optval; in dccp_optsset() 986 error = sockopt_getint(sopt, &optval); in dccp_optsset() 987 if (optval > 15 || optval < 0) { in dccp_optsset() 990 dp->cslen = optval; in dccp_optsset() 994 error = sockopt_getint(sopt, &optval); in dccp_optsset() 995 if (optval > 0 && optval <= dp->d_maxseg) { in dccp_optsset() 996 dp->d_maxseg = optval; in dccp_optsset() [all …]
|
| H A D | tcp_usrreq.c | 266 int level, optname, optval; in tcp_ctloutput() local 300 error = sockopt_getint(sopt, &optval); in tcp_ctloutput() 303 if (optval > 0) in tcp_ctloutput() 311 error = sockopt_getint(sopt, &optval); in tcp_ctloutput() 314 if (optval) in tcp_ctloutput() 321 error = sockopt_getint(sopt, &optval); in tcp_ctloutput() 324 if (optval > 0 && optval <= tp->t_peermss) in tcp_ctloutput() 325 tp->t_peermss = optval; /* limit on send size */ in tcp_ctloutput() 390 optval = (tp->t_flags & TF_SIGNATURE) ? 1 : 0; in tcp_ctloutput() 394 optval = tp->t_flags & TF_NODELAY; in tcp_ctloutput() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/ |
| H A D | setsockopt.c | 35 rpl_setsockopt (int fd, int level, int optname, const void *optval, socklen_t optlen) in rpl_setsockopt() argument 50 const struct timeval *tv = optval; in rpl_setsockopt() 52 optval = &milliseconds; in rpl_setsockopt() 53 r = setsockopt (sock, level, optname, optval, sizeof (int)); in rpl_setsockopt() 57 r = setsockopt (sock, level, optname, optval, optlen); in rpl_setsockopt()
|
| H A D | sys_socket.in.h | 473 void *restrict optval, socklen_t *restrict optlen) 477 void *restrict optval, socklen_t *restrict optlen)); 483 void *restrict optval, socklen_t *restrict optlen)); 651 const void * optval, socklen_t optlen) 654 const void * optval, socklen_t optlen)); 660 const void * optval, socklen_t optlen));
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| H A D | socket_wrapper.h | 48 int swrap_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); 49 int swrap_setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen); 94 #define getsockopt(s,level,optname,optval,optlen) swrap_getsockopt(s,level,optname,optval,optlen) argument 99 #define setsockopt(s,level,optname,optval,optlen) swrap_setsockopt(s,level,optname,optval,optlen) argument
|
| /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/ |
| H A D | TlsOptions.cpp | 24 int optval; member 108 int ret = ldap_set_option( m_ld, optmap[opt].optval, value); in setOption() 121 int ret = ldap_get_option( m_ld, optmap[opt].optval, value); in getOption() 135 ldap_get_option( m_ld, optmap[opt].optval, (void*) &value); in getIntOption() 142 ldap_get_option( m_ld, optmap[opt].optval, (void*) &value); in getStringOption()
|
| /netbsd-src/external/bsd/ipf/dist/lib/ |
| H A D | optvalue.c | 25 u_32_t getoptbyvalue(optval) in getoptbyvalue() argument 26 int optval; in getoptbyvalue() 31 if (io->on_value == optval)
|
| H A D | v6optvalue.c | 28 u_32_t getv6optbyvalue(optval) in getv6optbyvalue() argument 29 int optval; in getv6optbyvalue() 35 if (io->on_value == optval)
|
| /netbsd-src/sys/netcan/ |
| H A D | can.c | 862 int optval = 0; in can_raw_getop() local 867 optval = (canp->canp_flags & CANP_NO_LOOPBACK) ? 0 : 1; in can_raw_getop() 868 error = sockopt_set(sopt, &optval, sizeof(optval)); in can_raw_getop() 871 optval = (canp->canp_flags & CANP_RECEIVE_OWN) ? 1 : 0; in can_raw_getop() 872 error = sockopt_set(sopt, &optval, sizeof(optval)); in can_raw_getop() 888 int optval = 0; in can_raw_setop() local 893 error = sockopt_getint(sopt, &optval); in can_raw_setop() 895 if (optval) { in can_raw_setop() 903 error = sockopt_getint(sopt, &optval); in can_raw_setop() 905 if (optval) { in can_raw_setop()
|
| /netbsd-src/usr.bin/radioctl/ |
| H A D | radioctl.c | 202 warn_unsupported(int optval) in warn_unsupported() argument 204 warnx("driver does not support `%s'", varname[optval]); in warn_unsupported() 342 str_to_long(char *str, int optval) in str_to_long() argument 349 if (optval == OPTION_FREQUENCY) in str_to_long() 444 print_value(int optval) in print_value() argument 446 if (optval == (int)OPTION_NONE) in print_value() 449 switch (optval) { in print_value()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/postconf/ |
| H A D | postconf.c | 757 static void pcf_check_exclusive_options(int optval) in pcf_check_exclusive_options() argument 765 oval &= optval; in pcf_check_exclusive_options() 776 static void pcf_check_compat_options(int optval) in pcf_check_compat_options() argument 785 if ((optval & *op[0]) != 0 in pcf_check_compat_options() 786 && (excess = (optval & ~((*op)[0] | (*op)[1]))) != 0) in pcf_check_compat_options()
|
| /netbsd-src/sbin/ping/ |
| H A D | ping.c | 647 int optval; in main() local 649 optval = IPSEC_LEVEL_REQUIRE; in main() 652 (char *)&optval, sizeof(optval)); in main() 655 (char *)&optval, sizeof(optval)); in main() 659 optval = IPSEC_LEVEL_REQUIRE; in main() 661 (char *)&optval, sizeof(optval)); in main() 663 optval = IPSEC_LEVEL_BYPASS; in main() 666 (char *)&optval, sizeof(optval)); in main() 669 (char *)&optval, sizeof(optval)); in main() 672 (char *)&optval, sizeof(optval)); in main()
|
| /netbsd-src/sys/kern/ |
| H A D | uipc_socket.c | 1743 int optval = 0; /* XXX: gcc */ in sosetopt1() 1784 error = sockopt_getint(sopt, &optval); in sosetopt1() 1788 if (optval) in sosetopt1() 1798 error = sockopt_getint(sopt, &optval); in sosetopt1() 1807 if (optval < 1) { in sosetopt1() 1814 if (sbreserve(&so->so_snd, (u_long)optval, so) == 0) { in sosetopt1() 1823 if (sbreserve(&so->so_rcv, (u_long)optval, so) == 0) { in sosetopt1() 1836 if (optval > so->so_snd.sb_hiwat) in sosetopt1() 1837 optval = so->so_snd.sb_hiwat; in sosetopt1() 1839 so->so_snd.sb_lowat = optval; in sosetopt1() 1740 int optval = 0; /* XXX: gcc */ sosetopt1() local 1945 int error, optval, opt; sogetopt1() local [all...] |
| /netbsd-src/sbin/ping6/ |
| H A D | ping6.c | 284 int ch, hold, preload, optval, ret_ga; in main() local 697 optval = IPV6_DEFHLIM; in main() 700 &optval, sizeof(optval)) == -1) in main() 704 optval = mflag > 1 ? 0 : 1; in main() 707 &optval, sizeof(optval)) == -1) in main() 710 optval = 1; in main() 712 &optval, sizeof(optval)) == -1) in main() 873 optval = 1; in main() 875 if (prog_setsockopt(s, IPPROTO_IPV6, IPV6_RECVPKTINFO, &optval, in main() 876 sizeof(optval)) < 0) in main() [all …]
|
| /netbsd-src/tests/net/inpcb/ |
| H A D | inpcb_bind.c | 37 int error, optval; in runtest() local 46 optval = 1; in runtest() 48 &optval, sizeof(int)); in runtest() 56 optval = 1; in runtest() 58 &optval, sizeof(int)); in runtest()
|
| /netbsd-src/external/mit/libuv/dist/src/win/ |
| H A D | udp.c | 921 BOOL optval = (BOOL) value; in uv_udp_set_broadcast() local 929 (char*) &optval, in uv_udp_set_broadcast() 930 sizeof optval)) { in uv_udp_set_broadcast() 984 DWORD optval = (DWORD) value; \ 998 (char*) &optval, \ 999 sizeof optval)) { \ 1007 (char*) &optval, \ 1008 sizeof optval)) { \
|
| /netbsd-src/sys/compat/linux32/common/ |
| H A D | linux32_socketcall.h | 91 syscallarg(netbsd32_voidp) optval; 99 syscallarg(netbsd32_voidp) optval;
|
| /netbsd-src/sys/compat/linux/common/ |
| H A D | linux_socketcall.h | 158 syscallarg(void *) optval; 168 syscallarg(void *) optval;
|
| /netbsd-src/external/bsd/ipf/dist/iplang/ |
| H A D | iplang_y.y | 1137 int val, len, val2, pad, optval; local 1148 optval = 0; 1152 optval = 1; 1156 optval = 2; 1160 optval = 3; 1164 optval = 8; 1168 optval = 0; 1185 *s++ = (u_char)optval; 1200 *s++ = (u_char)optval; 1202 canip->ah_lastopt = optval;
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/bio/ |
| H A D | bss_dgram.c | 802 int ret, optval = 20000; in BIO_new_dgram_sctp() local 920 setsockopt(fd, IPPROTO_SCTP, SCTP_PARTIAL_DELIVERY_POINT, &optval, in BIO_new_dgram_sctp() 921 sizeof(optval)); in BIO_new_dgram_sctp() 990 int ret = 0, n = 0, i, optval; in dgram_sctp_read() local 1133 ret = getsockopt(b->num, SOL_SOCKET, SO_RCVBUF, &optval, &optlen); in dgram_sctp_read() 1135 OPENSSL_assert(optval >= 18445); in dgram_sctp_read() 1144 &optval, &optlen); in dgram_sctp_read() 1146 OPENSSL_assert(optval >= 18445); in dgram_sctp_read()
|