| /freebsd-13.1/bin/sh/ |
| H A D | options.h | 50 #define eflag optval[0] 51 #define fflag optval[1] 52 #define Iflag optval[2] 53 #define iflag optval[3] 54 #define mflag optval[4] 55 #define nflag optval[5] 56 #define sflag optval[6] 57 #define xflag optval[7] 58 #define vflag optval[8] 59 #define Vflag optval[9] [all …]
|
| H A D | options.c | 97 optval[i] = 2; in procargs() 110 if (optval[i] == 2) in procargs() 111 optval[i] = 0; in procargs() 262 optval[i] ? "on" : "off"); in minus_o() 268 optval[i] ? '-' : '+', in minus_o() 287 if (&optval[idx] == &privileged && !val && privileged) { in setoptionbyindex() 293 optval[idx] = val; in setoptionbyindex() 296 if (&optval[idx] == &Vflag) in setoptionbyindex() 298 else if (&optval[idx] == &Eflag) in setoptionbyindex()
|
| /freebsd-13.1/sys/netinet/ |
| H A D | ip_output.c | 1075 int error, optval; in ip_ctloutput() local 1081 error = optval = 0; in ip_ctloutput() 1198 error = sooptcopyin(sopt, &optval, sizeof optval, in ip_ctloutput() 1213 if (optval >= 0 && optval <= MAXTTL) in ip_ctloutput() 1221 if (optval) \ in ip_ctloutput() 1294 if ((optval >= -1) && (optval <= in ip_ctloutput() 1345 error = sooptcopyin(sopt, &optval, sizeof optval, in ip_ctloutput() 1351 switch (optval) { in ip_ctloutput() 1482 optval = 0; in ip_ctloutput() 1528 optval = -1; in ip_ctloutput() [all …]
|
| H A D | tcp_usrreq.c | 1984 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2018 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2040 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2065 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2071 if (optval > 0 && optval <= tp->t_maxseg && in tcp_default_ctloutput() 2086 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2157 error = sooptcopyin(sopt, &optval, sizeof(optval), in tcp_default_ctloutput() 2255 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2324 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2395 error = sooptcopyout(sopt, &optval, sizeof optval); in tcp_default_ctloutput() [all …]
|
| H A D | sctp_usrreq.c | 1393 totaddrp = (unsigned int *)optval; in sctp_do_connect_x() 1468 a_id = (sctp_assoc_t *)optval; in sctp_do_connect_x() 1527 if (optval == NULL) { 1593 *(int *)optval = val; 3743 if (optval == NULL) { 3842 if (optval) 6872 void *optval = NULL; local 6910 if (optval == NULL) { 6933 SCTP_FREE(optval, SCTP_M_SOCKOPT); 6934 } else if (optval != NULL) { [all …]
|
| H A D | udp_usrreq.c | 977 int isudplite, error, optval; in udp_ctloutput() local 1025 error = sooptcopyin(sopt, &optval, sizeof(optval), in udp_ctloutput() 1026 sizeof(optval)); in udp_ctloutput() 1034 if ((optval != 0 && optval < 8) || (optval > 65535)) { in udp_ctloutput() 1040 up->u_txcslen = optval; in udp_ctloutput() 1042 up->u_rxcslen = optval; in udp_ctloutput() 1074 optval = up->u_txcslen; in udp_ctloutput() 1076 optval = up->u_rxcslen; in udp_ctloutput() 1078 error = sooptcopyout(sopt, &optval, sizeof(optval)); in udp_ctloutput()
|
| /freebsd-13.1/tools/regression/usr.bin/env/ |
| H A D | regress-sb.rb | 356 if optval =~ /^\d+$/ 357 $testdata.cmdvalue = optval.to_i 362 if optval =~ /^\s*([A-Za-z]\w*)\s*$/ 368 $testdata.shebang_args = optval 370 $testdata.add_script(optval) 372 if optval =~ /^\s*([A-Za-z]\w*)=(.*)$/ 378 $testdata.add_expecterr(optval) 380 $testdata.add_expectout(optval) 382 if optval =~ /^\s*(\S+)\s+(\S+)\s*$/ 400 $testdata.user_args = optval [all …]
|
| /freebsd-13.1/sys/netinet6/ |
| H A D | ip6_output.c | 1624 optval = 0; in ip6_ctloutput() 1767 sizeof optval, sizeof optval); in ip6_ctloutput() 1772 if (optval < -1 || optval >= 256) in ip6_ctloutput() 1849 (u_char *)&optval, sizeof(optval), in ip6_ctloutput() 1949 if ((optval >= -1) && (optval <= in ip6_ctloutput() 1983 sizeof optval, sizeof optval); in ip6_ctloutput() 1995 (u_char *)&optval, sizeof(optval), in ip6_ctloutput() 2013 sizeof optval, sizeof optval); in ip6_ctloutput() 2111 sizeof optval, sizeof optval); in ip6_ctloutput() 2439 error = sooptcopyin(sopt, &optval, sizeof(optval), in ip6_raw_ctloutput() [all …]
|
| /freebsd-13.1/sys/netipsec/ |
| H A D | udpencap.c | 71 int error, optval; in udp_ipsec_pcbctl() local 82 optval = UDP_ENCAP_ESPINUDP; in udp_ipsec_pcbctl() 84 optval = 0; in udp_ipsec_pcbctl() 86 return (sooptcopyout(sopt, &optval, sizeof(optval))); in udp_ipsec_pcbctl() 90 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in udp_ipsec_pcbctl() 95 switch (optval) { in udp_ipsec_pcbctl()
|
| H A D | xform_tcp.c | 81 int error, optval; in tcp_ipsec_pcbctl() local 94 optval = (tp->t_flags & TF_SIGNATURE) ? 1 : 0; in tcp_ipsec_pcbctl() 98 return (sooptcopyout(sopt, &optval, sizeof(optval))); in tcp_ipsec_pcbctl() 101 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in tcp_ipsec_pcbctl() 112 if (optval > 0) in tcp_ipsec_pcbctl()
|
| /freebsd-13.1/usr.sbin/rrenumd/ |
| H A D | rrenumd.c | 277 int optval; in sock6_open() local 332 optval = IPSEC_LEVEL_REQUIRE; in sock6_open() 334 &optval, sizeof(optval)) == -1) { in sock6_open() 341 optval = IPSEC_LEVEL_REQUIRE; in sock6_open() 343 &optval, sizeof(optval)) == -1) { in sock6_open() 364 int optval; in sock4_open() local 398 optval = IPSEC_LEVEL_REQUIRE; in sock4_open() 400 &optval, sizeof(optval)) == -1) { in sock4_open() 407 optval = IPSEC_LEVEL_REQUIRE; in sock4_open() 409 &optval, sizeof(optval)) == -1) { in sock4_open()
|
| /freebsd-13.1/crypto/heimdal/lib/roken/ |
| H A D | socket_wrapper.h | 46 int swrap_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); 47 int swrap_setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen); 92 #define getsockopt(s,level,optname,optval,optlen) swrap_getsockopt(s,level,optname,optval,optlen) argument 97 #define setsockopt(s,level,optname,optval,optlen) swrap_setsockopt(s,level,optname,optval,optlen) argument
|
| /freebsd-13.1/sbin/ping/ |
| H A D | ping6.c | 795 optval = 1; in ping6() 798 &optval, sizeof(optval)) == -1) in ping6() 811 &optval, sizeof(optval)) == -1) in ping6() 818 &optval, sizeof(optval)) == -1) in ping6() 825 &optval, sizeof(optval)) == -1) in ping6() 844 &optval, sizeof(optval)) == -1) in ping6() 847 &optval, sizeof(optval)) == -1) in ping6() 851 &optval, sizeof(optval)) == -1) in ping6() 854 &optval, sizeof(optval)) == -1) in ping6() 861 &optval, sizeof(optval)) == -1) in ping6() [all …]
|
| /freebsd-13.1/usr.sbin/iscsid/ |
| H A D | iscsid.c | 167 int error, optval; in connection_new() local 278 optval = SOCKBUF_SIZE; in connection_new() 280 &optval, sizeof(optval)) == -1) in connection_new() 282 optval = SOCKBUF_SIZE; in connection_new() 284 &optval, sizeof(optval)) == -1) in connection_new() 286 optval = 1; in connection_new() 288 &optval, sizeof(optval)) == -1) in connection_new()
|
| /freebsd-13.1/usr.sbin/mtest/ |
| H A D | mtest.c | 388 void *optval; in process_cmd() local 454 optval = (void *)&mr.mrs; in process_cmd() 463 optval = (void *)&mr.mr; in process_cmd() 469 } else if (setsockopt(s, level, optname, optval, in process_cmd() 494 optval = (void *)&mr.gr; in process_cmd() 505 optval = (void *)&mr.mr6; in process_cmd() 511 } else if (setsockopt(s6, level, optname, optval, in process_cmd() 634 optval = (void *)&mr.mrs; in process_cmd() 656 if (setsockopt(s, level, optname, optval, in process_cmd() 691 optval = (void *)&mr.gr; in process_cmd() [all …]
|
| /freebsd-13.1/contrib/ofed/librdmacm/examples/ |
| H A D | rstream.c | 260 int optval; in set_keepalive() local 263 optval = 1; in set_keepalive() 264 if (rs_setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &optval, optlen)) { in set_keepalive() 269 optval = keepalive; in set_keepalive() 270 if (rs_setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &optval, optlen)) in set_keepalive() 273 if (!(rs_getsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &optval, &optlen))) in set_keepalive() 274 printf("Keepalive: %s\n", (optval ? "ON" : "OFF")); in set_keepalive() 276 if (!(rs_getsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &optval, &optlen))) in set_keepalive() 277 printf(" time: %i\n", optval); in set_keepalive()
|
| /freebsd-13.1/sbin/ipf/libipf/ |
| H A D | optvalue.c | 26 getoptbyvalue(int optval) in getoptbyvalue() argument 31 if (io->on_value == optval) in getoptbyvalue()
|
| H A D | v6optvalue.c | 27 u_32_t getv6optbyvalue(int optval) in getv6optbyvalue() argument 33 if (io->on_value == optval) in getv6optbyvalue()
|
| /freebsd-13.1/sys/kern/ |
| H A D | uipc_socket.c | 2996 int error, optval; local 3054 error = sooptcopyin(sopt, &optval, sizeof optval, 3059 if (optval) 3067 error = sooptcopyin(sopt, &optval, sizeof optval, 3072 if (optval < 0 || optval >= rt_numfibs) { 3096 error = sooptcopyin(sopt, &optval, sizeof optval, 3105 if (optval < 1) { 3162 error = sooptcopyin(sopt, &optval, sizeof optval, 3166 if (optval < 0 || optval > SO_TS_CLOCK_MAX) { 3230 int error, optval; local [all …]
|
| /freebsd-13.1/contrib/ofed/opensm/opensm/ |
| H A D | osm_console_io.c | 204 int optval = 1; in osm_console_init() local 214 &optval, sizeof(optval))) { in osm_console_init()
|
| /freebsd-13.1/contrib/ofed/librdmacm/ |
| H A D | rsocket.c | 358 void *optval; member 1314 if (rs->optval) { in rs_do_connect() 1318 free(rs->optval); in rs_do_connect() 1319 rs->optval = NULL; in rs_do_connect() 3417 opt_on = *(int *) optval; in rsetsockopt() 3442 opt_on = *(int *) optval; in rsetsockopt() 3466 opt_on = *(int *) optval; in rsetsockopt() 3520 memcpy(rs->optval, optval, optlen); in rsetsockopt() 3670 if (rs->optval) { in rgetsockopt() 3674 memcpy(rs->optval, optval, rs->optlen); in rgetsockopt() [all …]
|
| H A D | rsocket.h | 86 const void *optval, socklen_t optlen); 88 void *optval, socklen_t *optlen);
|
| /freebsd-13.1/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_ucma.c | 1181 void *optval, size_t optlen) in ucma_set_option_id() argument 1191 rdma_set_service_type(ctx->cm_id, *((u8 *) optval)); in ucma_set_option_id() 1253 void *optval, size_t optlen) in ucma_set_option_ib() argument 1259 ret = ucma_set_ib_path(ctx, optval, optlen); in ucma_set_option_ib() 1269 int optname, void *optval, size_t optlen) in ucma_set_option_level() argument 1275 ret = ucma_set_option_id(ctx, optname, optval, optlen); in ucma_set_option_level() 1292 void *optval; in ucma_set_option() local 1302 optval = memdup_user((void __user *) (unsigned long) cmd.optval, in ucma_set_option() 1304 if (IS_ERR(optval)) { in ucma_set_option() 1305 ret = PTR_ERR(optval); in ucma_set_option() [all …]
|
| /freebsd-13.1/sys/netinet/tcp_stacks/ |
| H A D | bbr.c | 14308 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in bbr_set_sockopt() 14348 if ((optval > 3) && (optval < 500)) { in bbr_set_sockopt() 14372 if ((optval >= 0) && (optval < 128)) { in bbr_set_sockopt() 14386 if ((optval > 0) && (optval < BBR_MAX_GAIN_VALUE)) { in bbr_set_sockopt() 14396 if ((optval > 0) && (optval < BBR_MAX_GAIN_VALUE)) in bbr_set_sockopt() 14460 if ((optval > 0) && (optval < 31)) in bbr_set_sockopt() 14473 if (optval) in bbr_set_sockopt() 14485 if (optval) in bbr_set_sockopt() 14492 if ((optval >= 0) && (optval < 40)) in bbr_set_sockopt() 14499 if ((optval >= 0) && (optval < 0xffff)) in bbr_set_sockopt() [all …]
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_socket.c | 765 int error, optval; in linux_check_hdrincl() local 768 size_val = sizeof(optval); in linux_check_hdrincl() 770 &optval, UIO_SYSSPACE, &size_val); in linux_check_hdrincl() 774 return (optval == 0); in linux_check_hdrincl() 1817 error = copyin(PTRIN(args->optval), &linux_tv, in linux_setsockopt() 1903 (void *)(args->optval + i * sizeof(l_gid_t)), in linux_getsockopt_so_peergroups() 1929 PTRIN(args->optval), sizeof(SECURITY_CONTEXT_STRING)); in linux_getsockopt_so_peersec() 1973 return (copyout(&linux_tv, PTRIN(args->optval), in linux_getsockopt() 2001 return (copyout(&newval, PTRIN(args->optval), len)); in linux_getsockopt() 2046 if (args->optval) { in linux_getsockopt() [all …]
|