| /freebsd-14.2/bin/sh/ |
| H A D | options.h | 49 #define eflag optval[0] 50 #define fflag optval[1] 51 #define Iflag optval[2] 52 #define iflag optval[3] 53 #define mflag optval[4] 54 #define nflag optval[5] 55 #define sflag optval[6] 56 #define xflag optval[7] 57 #define vflag optval[8] 58 #define Vflag optval[9] [all …]
|
| H A D | options.c | 95 optval[i] = 2; in procargs() 108 if (optval[i] == 2) in procargs() 109 optval[i] = 0; in procargs() 260 optval[i] ? "on" : "off"); in minus_o() 266 optval[i] ? '-' : '+', in minus_o() 285 if (&optval[idx] == &privileged && !val && privileged) { in setoptionbyindex() 291 optval[idx] = val; in setoptionbyindex() 294 if (&optval[idx] == &Vflag) in setoptionbyindex() 296 else if (&optval[idx] == &Eflag) in setoptionbyindex()
|
| /freebsd-14.2/sys/netinet/ |
| H A D | ip_output.c | 1072 int error, optval; in ip_ctloutput() local 1078 error = optval = 0; in ip_ctloutput() 1164 error = sooptcopyin(sopt, &optval, sizeof optval, in ip_ctloutput() 1179 if (optval >= 0 && optval <= MAXTTL) in ip_ctloutput() 1187 if (optval) \ in ip_ctloutput() 1248 if ((optval >= -1) && (optval <= in ip_ctloutput() 1299 error = sooptcopyin(sopt, &optval, sizeof optval, in ip_ctloutput() 1305 switch (optval) { in ip_ctloutput() 1435 optval = 0; in ip_ctloutput() 1478 optval = -1; in ip_ctloutput() [all …]
|
| H A D | tcp_usrreq.c | 2117 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2154 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2176 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2201 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2207 if (optval > 0 && optval <= tp->t_maxseg && in tcp_default_ctloutput() 2222 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2254 error = sooptcopyin(sopt, &optval, sizeof(optval), in tcp_default_ctloutput() 2356 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2426 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2496 error = sooptcopyout(sopt, &optval, sizeof optval); in tcp_default_ctloutput() [all …]
|
| H A D | sctp_usrreq.c | 1384 totaddrp = (unsigned int *)optval; in sctp_do_connect_x() 1458 a_id = (sctp_assoc_t *)optval; in sctp_do_connect_x() 1517 if (optval == NULL) { 1583 *(int *)optval = val; 3733 if (optval == NULL) { 3832 if (optval) 6873 void *optval = NULL; local 6911 if (optval == NULL) { 6934 SCTP_FREE(optval, SCTP_M_SOCKOPT); 6935 } else if (optval != NULL) { [all …]
|
| H A D | raw_ip.c | 637 int error, optval; in rip_ctloutput() local 653 optval = inp->inp_flags & INP_HDRINCL; in rip_ctloutput() 654 error = sooptcopyout(sopt, &optval, sizeof optval); in rip_ctloutput() 708 error = sooptcopyin(sopt, &optval, sizeof optval, in rip_ctloutput() 709 sizeof optval); in rip_ctloutput() 712 if (optval) in rip_ctloutput()
|
| /freebsd-14.2/tools/regression/usr.bin/env/ |
| H A D | regress-sb.rb | 355 if optval =~ /^\d+$/ 356 $testdata.cmdvalue = optval.to_i 361 if optval =~ /^\s*([A-Za-z]\w*)\s*$/ 367 $testdata.shebang_args = optval 369 $testdata.add_script(optval) 371 if optval =~ /^\s*([A-Za-z]\w*)=(.*)$/ 377 $testdata.add_expecterr(optval) 379 $testdata.add_expectout(optval) 381 if optval =~ /^\s*(\S+)\s+(\S+)\s*$/ 399 $testdata.user_args = optval [all …]
|
| /freebsd-14.2/tests/sys/netlink/ |
| H A D | test_snl.c | 65 int optval = 1; in ATF_TC_BODY() local 66 ATF_CHECK(setsockopt(ss.fd, SOL_NETLINK, NETLINK_CAP_ACK, &optval, sizeof(optval)) == 0); in ATF_TC_BODY() 105 int optval = 1; in ATF_TC_BODY() local 106 ATF_CHECK(setsockopt(ss.fd, SOL_NETLINK, NETLINK_CAP_ACK, &optval, sizeof(optval)) == 0); in ATF_TC_BODY() 107 optval = 1; in ATF_TC_BODY() 108 ATF_CHECK(setsockopt(ss.fd, SOL_NETLINK, NETLINK_EXT_ACK, &optval, sizeof(optval)) == 0); in ATF_TC_BODY() 147 int optval = 1; in ATF_TC_BODY() local 148 ATF_CHECK(setsockopt(ss.fd, SOL_NETLINK, NETLINK_EXT_ACK, &optval, sizeof(optval)) == 0); in ATF_TC_BODY()
|
| /freebsd-14.2/sys/netlink/ |
| H A D | netlink_domain.c | 649 int optval, error = 0; in nl_ctloutput() local 660 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in nl_ctloutput() 663 if (optval <= 0 || optval >= NLP_MAX_GROUPS) { in nl_ctloutput() 671 nl_add_group_locked(nlp, optval); in nl_ctloutput() 680 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in nl_ctloutput() 692 if (optval != 0) in nl_ctloutput() 708 error = sooptcopyout(sopt, &optval, sizeof(optval)); in nl_ctloutput() 717 error = sooptcopyout(sopt, &optval, sizeof(optval)); in nl_ctloutput() 749 int error, optval; in nl_setsbopt() local 757 error = sooptcopyin(sopt, &optval, sizeof optval, sizeof optval); in nl_setsbopt() [all …]
|
| /freebsd-14.2/sys/netinet6/ |
| H A D | ip6_output.c | 1633 optval = 0; in ip6_ctloutput() 1745 sizeof optval, sizeof optval); in ip6_ctloutput() 1750 if (optval < -1 || optval >= 256) in ip6_ctloutput() 1827 (u_char *)&optval, sizeof(optval), in ip6_ctloutput() 1910 if ((optval >= -1) && (optval <= in ip6_ctloutput() 1944 sizeof optval, sizeof optval); in ip6_ctloutput() 1956 (u_char *)&optval, sizeof(optval), in ip6_ctloutput() 1974 sizeof optval, sizeof optval); in ip6_ctloutput() 2072 sizeof optval, sizeof optval); in ip6_ctloutput() 2396 error = sooptcopyin(sopt, &optval, sizeof(optval), in ip6_raw_ctloutput() [all …]
|
| /freebsd-14.2/sys/netipsec/ |
| H A D | udpencap.c | 69 int error, optval; in udp_ipsec_pcbctl() local 80 optval = UDP_ENCAP_ESPINUDP; in udp_ipsec_pcbctl() 82 optval = 0; in udp_ipsec_pcbctl() 84 return (sooptcopyout(sopt, &optval, sizeof(optval))); in udp_ipsec_pcbctl() 88 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in udp_ipsec_pcbctl() 93 switch (optval) { in udp_ipsec_pcbctl()
|
| H A D | xform_tcp.c | 80 int error, optval; in tcp_ipsec_pcbctl() local 93 optval = (tp->t_flags & TF_SIGNATURE) ? 1 : 0; in tcp_ipsec_pcbctl() 97 return (sooptcopyout(sopt, &optval, sizeof(optval))); in tcp_ipsec_pcbctl() 100 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in tcp_ipsec_pcbctl() 111 if (optval > 0) in tcp_ipsec_pcbctl()
|
| /freebsd-14.2/usr.sbin/rrenumd/ |
| H A D | rrenumd.c | 275 int optval; in sock6_open() local 330 optval = IPSEC_LEVEL_REQUIRE; in sock6_open() 332 &optval, sizeof(optval)) == -1) { in sock6_open() 339 optval = IPSEC_LEVEL_REQUIRE; in sock6_open() 341 &optval, sizeof(optval)) == -1) { in sock6_open() 360 int optval; in sock4_open() local 394 optval = IPSEC_LEVEL_REQUIRE; in sock4_open() 396 &optval, sizeof(optval)) == -1) { in sock4_open() 403 optval = IPSEC_LEVEL_REQUIRE; in sock4_open() 405 &optval, sizeof(optval)) == -1) { in sock4_open()
|
| /freebsd-14.2/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-14.2/sbin/ping/ |
| H A D | ping6.c | 782 optval = 1; in ping6() 785 &optval, sizeof(optval)) == -1) in ping6() 798 &optval, sizeof(optval)) == -1) in ping6() 805 &optval, sizeof(optval)) == -1) in ping6() 812 &optval, sizeof(optval)) == -1) in ping6() 831 &optval, sizeof(optval)) == -1) in ping6() 834 &optval, sizeof(optval)) == -1) in ping6() 838 &optval, sizeof(optval)) == -1) in ping6() 841 &optval, sizeof(optval)) == -1) in ping6() 848 &optval, sizeof(optval)) == -1) in ping6() [all …]
|
| /freebsd-14.2/usr.sbin/mtest/ |
| H A D | mtest.c | 386 void *optval; in process_cmd() local 452 optval = (void *)&mr.mrs; in process_cmd() 461 optval = (void *)&mr.mr; in process_cmd() 467 } else if (setsockopt(s, level, optname, optval, in process_cmd() 492 optval = (void *)&mr.gr; in process_cmd() 503 optval = (void *)&mr.mr6; in process_cmd() 509 } else if (setsockopt(s6, level, optname, optval, in process_cmd() 632 optval = (void *)&mr.mrs; in process_cmd() 654 if (setsockopt(s, level, optname, optval, in process_cmd() 689 optval = (void *)&mr.gr; in process_cmd() [all …]
|
| /freebsd-14.2/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-14.2/usr.sbin/iscsid/ |
| H A D | iscsid.c | 231 int error, optval; in connection_new() local 303 optval = SOCKBUF_SIZE; in connection_new() 305 &optval, sizeof(optval)) == -1) in connection_new() 307 optval = SOCKBUF_SIZE; in connection_new() 309 &optval, sizeof(optval)) == -1) in connection_new() 311 optval = 1; in connection_new() 313 &optval, sizeof(optval)) == -1) in connection_new()
|
| /freebsd-14.2/sbin/ipf/libipf/ |
| H A D | optvalue.c | 25 getoptbyvalue(int optval) in getoptbyvalue() argument 30 if (io->on_value == optval) in getoptbyvalue()
|
| H A D | v6optvalue.c | 26 u_32_t getv6optbyvalue(int optval) in getv6optbyvalue() argument 32 if (io->on_value == optval) in getv6optbyvalue()
|
| /freebsd-14.2/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-14.2/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-14.2/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_ucma.c | 1182 void *optval, size_t optlen) in ucma_set_option_id() argument 1192 rdma_set_service_type(ctx->cm_id, *((u8 *) optval)); in ucma_set_option_id() 1254 void *optval, size_t optlen) in ucma_set_option_ib() argument 1260 ret = ucma_set_ib_path(ctx, optval, optlen); in ucma_set_option_ib() 1270 int optname, void *optval, size_t optlen) in ucma_set_option_level() argument 1276 ret = ucma_set_option_id(ctx, optname, optval, optlen); in ucma_set_option_level() 1293 void *optval; in ucma_set_option() local 1303 optval = memdup_user((void __user *) (unsigned long) cmd.optval, in ucma_set_option() 1305 if (IS_ERR(optval)) { in ucma_set_option() 1306 ret = PTR_ERR(optval); in ucma_set_option() [all …]
|
| /freebsd-14.2/sys/kern/ |
| H A D | uipc_socket.c | 3761 int error, optval; local 3819 error = sooptcopyin(sopt, &optval, sizeof optval, 3820 sizeof optval); 3824 if (optval) 3832 error = sooptcopyin(sopt, &optval, sizeof optval, 3833 sizeof optval); 3837 if (optval < 0 || optval >= rt_numfibs) { 3915 error = sooptcopyin(sopt, &optval, sizeof optval, 3919 if (optval < 0 || optval > SO_TS_CLOCK_MAX) { 4039 int error, optval; local [all …]
|