/freebsd/bin/sh/ |
H A D | options.h | 47 #define eflag optval[0] 48 #define fflag optval[1] 49 #define Iflag optval[2] 50 #define iflag optval[3] 51 #define mflag optval[4] 52 #define nflag optval[5] 53 #define sflag optval[6] 54 #define xflag optval[7] 55 #define vflag optval[8] 56 #define Vflag optval[9] [all …]
|
H A D | options.c | 89 optval[i] = 2; in procargs() 102 if (optval[i] == 2) in procargs() 103 optval[i] = 0; in procargs() 254 optval[i] ? "on" : "off"); in minus_o() 260 optval[i] ? '-' : '+', in minus_o() 279 if (&optval[idx] == &privileged && !val && privileged) { in setoptionbyindex() 285 optval[idx] = val; in setoptionbyindex() 288 if (&optval[idx] == &Vflag) in setoptionbyindex() 290 else if (&optval[idx] == &Eflag) in setoptionbyindex()
|
/freebsd/sys/netinet/ |
H A D | ip_output.c | 1070 int error, optval; in ip_ctloutput() local 1076 error = optval = 0; in ip_ctloutput() 1162 error = sooptcopyin(sopt, &optval, sizeof optval, in ip_ctloutput() 1177 if (optval >= 0 && optval <= MAXTTL) in ip_ctloutput() 1185 if (optval) \ in ip_ctloutput() 1246 if ((optval >= -1) && (optval <= in ip_ctloutput() 1297 error = sooptcopyin(sopt, &optval, sizeof optval, in ip_ctloutput() 1303 switch (optval) { in ip_ctloutput() 1433 optval = 0; in ip_ctloutput() 1476 optval = -1; in ip_ctloutput() [all …]
|
H A D | tcp_usrreq.c | 2107 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2141 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2163 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2188 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2194 if (optval > 0 && optval <= tp->t_maxseg && in tcp_default_ctloutput() 2219 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2251 error = sooptcopyin(sopt, &optval, sizeof(optval), in tcp_default_ctloutput() 2354 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2424 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2494 error = sooptcopyout(sopt, &optval, sizeof optval); in tcp_default_ctloutput() [all …]
|
H A D | sctp_usrreq.c | 1378 totaddrp = (unsigned int *)optval; in sctp_do_connect_x() 1452 a_id = (sctp_assoc_t *)optval; in sctp_do_connect_x() 1511 if (optval == NULL) { 1577 *(int *)optval = val; 3727 if (optval == NULL) { 3826 if (optval) 6867 void *optval = NULL; local 6905 if (optval == NULL) { 6928 SCTP_FREE(optval, SCTP_M_SOCKOPT); 6929 } else if (optval != NULL) { [all …]
|
H A D | raw_ip.c | 635 int error, optval; in rip_ctloutput() local 651 optval = inp->inp_flags & INP_HDRINCL; in rip_ctloutput() 652 error = sooptcopyout(sopt, &optval, sizeof optval); in rip_ctloutput() 706 error = sooptcopyin(sopt, &optval, sizeof optval, in rip_ctloutput() 707 sizeof optval); in rip_ctloutput() 710 if (optval) in rip_ctloutput()
|
/freebsd/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/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/sys/netinet6/ |
H A D | ip6_output.c | 1636 optval = 0; in ip6_ctloutput() 1748 sizeof optval, sizeof optval); in ip6_ctloutput() 1753 if (optval < -1 || optval >= 256) in ip6_ctloutput() 1830 (u_char *)&optval, sizeof(optval), in ip6_ctloutput() 1913 if ((optval >= -1) && (optval <= in ip6_ctloutput() 1947 sizeof optval, sizeof optval); in ip6_ctloutput() 1959 (u_char *)&optval, sizeof(optval), in ip6_ctloutput() 1977 sizeof optval, sizeof optval); in ip6_ctloutput() 2075 sizeof optval, sizeof optval); in ip6_ctloutput() 2399 error = sooptcopyin(sopt, &optval, sizeof(optval), in ip6_raw_ctloutput() [all …]
|
/freebsd/sys/netlink/ |
H A D | netlink_domain.c | 859 int optval, error = 0; in nl_ctloutput() local 870 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in nl_ctloutput() 873 if (optval <= 0 || optval >= NLP_MAX_GROUPS) { in nl_ctloutput() 881 nl_add_group_locked(nlp, optval); in nl_ctloutput() 890 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in nl_ctloutput() 902 if (optval != 0) in nl_ctloutput() 918 error = sooptcopyout(sopt, &optval, sizeof(optval)); in nl_ctloutput() 927 error = sooptcopyout(sopt, &optval, sizeof(optval)); in nl_ctloutput() 959 int error, optval; in nl_setsbopt() local 967 error = sooptcopyin(sopt, &optval, sizeof optval, sizeof optval); in nl_setsbopt() [all …]
|
/freebsd/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/sys/netipsec/ |
H A D | udpencap.c | 73 int error, optval; in udp_ipsec_pcbctl() local 84 optval = UDP_ENCAP_ESPINUDP; in udp_ipsec_pcbctl() 86 optval = 0; in udp_ipsec_pcbctl() 88 return (sooptcopyout(sopt, &optval, sizeof(optval))); in udp_ipsec_pcbctl() 92 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in udp_ipsec_pcbctl() 97 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/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/sbin/ping/ |
H A D | ping6.c | 769 optval = 1; in ping6() 772 &optval, sizeof(optval)) == -1) in ping6() 785 &optval, sizeof(optval)) == -1) in ping6() 792 &optval, sizeof(optval)) == -1) in ping6() 799 &optval, sizeof(optval)) == -1) in ping6() 818 &optval, sizeof(optval)) == -1) in ping6() 821 &optval, sizeof(optval)) == -1) in ping6() 825 &optval, sizeof(optval)) == -1) in ping6() 828 &optval, sizeof(optval)) == -1) in ping6() 835 &optval, sizeof(optval)) == -1) in ping6() [all …]
|
/freebsd/usr.sbin/mtest/ |
H A D | mtest.c | 385 void *optval; in process_cmd() local 451 optval = (void *)&mr.mrs; in process_cmd() 460 optval = (void *)&mr.mr; in process_cmd() 466 } else if (setsockopt(s, level, optname, optval, in process_cmd() 491 optval = (void *)&mr.gr; in process_cmd() 502 optval = (void *)&mr.mr6; in process_cmd() 508 } else if (setsockopt(s6, level, optname, optval, in process_cmd() 631 optval = (void *)&mr.mrs; in process_cmd() 653 if (setsockopt(s, level, optname, optval, in process_cmd() 688 optval = (void *)&mr.gr; in process_cmd() [all …]
|
/freebsd/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/usr.sbin/iscsid/ |
H A D | iscsid.c | 230 int error, optval; in connection_new() local 302 optval = SOCKBUF_SIZE; in connection_new() 304 &optval, sizeof(optval)) == -1) in connection_new() 306 optval = SOCKBUF_SIZE; in connection_new() 308 &optval, sizeof(optval)) == -1) in connection_new() 310 optval = 1; in connection_new() 312 &optval, sizeof(optval)) == -1) in connection_new()
|
/freebsd/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/sys/kern/ |
H A D | uipc_socket.c | 3109 int error, optval; local 3167 error = sooptcopyin(sopt, &optval, sizeof optval, 3168 sizeof optval); 3172 if (optval) 3180 error = sooptcopyin(sopt, &optval, sizeof optval, 3181 sizeof optval); 3185 if (optval < 0 || optval >= rt_numfibs) { 3263 error = sooptcopyin(sopt, &optval, sizeof optval, 3267 if (optval < 0 || optval > SO_TS_CLOCK_MAX) { 3333 int error, optval; local [all …]
|
/freebsd/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/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/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 …]
|