| /freebsd-12.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-12.1/sys/netinet/ |
| H A D | ip_output.c | 968 int error, optval; in ip_ctloutput() local 974 error = optval = 0; in ip_ctloutput() 1090 error = sooptcopyin(sopt, &optval, sizeof optval, in ip_ctloutput() 1091 sizeof optval); in ip_ctloutput() 1105 if (optval >= 0 && optval <= MAXTTL) in ip_ctloutput() 1113 if (optval) \ in ip_ctloutput() 1173 if ((optval >= 0) && in ip_ctloutput() 1215 error = sooptcopyin(sopt, &optval, sizeof optval, in ip_ctloutput() 1221 switch (optval) { in ip_ctloutput() 1352 optval = 0; in ip_ctloutput() [all …]
|
| H A D | tcp_usrreq.c | 1863 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 1897 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 1914 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 1920 if (optval > 0 && optval <= tp->t_maxseg && in tcp_default_ctloutput() 2037 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2102 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 2173 error = sooptcopyout(sopt, &optval, sizeof optval); in tcp_default_ctloutput() 2178 error = sooptcopyout(sopt, &optval, sizeof optval); in tcp_default_ctloutput() 2183 error = sooptcopyout(sopt, &optval, sizeof optval); in tcp_default_ctloutput() 2188 error = sooptcopyout(sopt, &optval, sizeof optval); in tcp_default_ctloutput() [all …]
|
| H A D | sctp_usrreq.c | 1396 totaddrp = (unsigned int *)optval; in sctp_do_connect_x() 1480 a_id = (sctp_assoc_t *)optval; in sctp_do_connect_x() 1540 if (optval == NULL) { 1606 *(int *)optval = val; 3096 *(int *)optval = onoff; 3115 *(int *)optval = onoff; 3741 if (optval == NULL) { 3840 if (optval) 6826 void *optval = NULL; local 6865 if (optval == NULL) { [all …]
|
| H A D | raw_ip.c | 619 int error, optval; in rip_ctloutput() local 635 optval = inp->inp_flags & INP_HDRINCL; in rip_ctloutput() 636 error = sooptcopyout(sopt, &optval, sizeof optval); in rip_ctloutput() 688 error = sooptcopyin(sopt, &optval, sizeof optval, in rip_ctloutput() 689 sizeof optval); in rip_ctloutput() 692 if (optval) in rip_ctloutput()
|
| /freebsd-12.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-12.1/sys/netinet6/ |
| H A D | ip6_output.c | 1467 optval = 0; in ip6_ctloutput() 1610 sizeof optval, sizeof optval); in ip6_ctloutput() 1616 if (optval < -1 || optval >= 256) in ip6_ctloutput() 1693 (u_char *)&optval, sizeof(optval), in ip6_ctloutput() 1801 sizeof optval, sizeof optval); in ip6_ctloutput() 1813 (u_char *)&optval, sizeof(optval), in ip6_ctloutput() 1831 sizeof optval, sizeof optval); in ip6_ctloutput() 1929 sizeof optval, sizeof optval); in ip6_ctloutput() 2248 error = sooptcopyin(sopt, &optval, sizeof(optval), in ip6_raw_ctloutput() 2252 if (optval < -1 || (optval % 2) != 0) { in ip6_raw_ctloutput() [all …]
|
| /freebsd-12.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-12.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-12.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-12.1/contrib/ipfilter/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)
|
| /freebsd-12.1/sbin/ping6/ |
| H A D | ping6.c | 771 optval = 1; in main() 774 &optval, sizeof(optval)) == -1) in main() 787 &optval, sizeof(optval)) == -1) in main() 794 &optval, sizeof(optval)) == -1) in main() 801 &optval, sizeof(optval)) == -1) in main() 820 &optval, sizeof(optval)) == -1) in main() 823 &optval, sizeof(optval)) == -1) in main() 827 &optval, sizeof(optval)) == -1) in main() 830 &optval, sizeof(optval)) == -1) in main() 837 &optval, sizeof(optval)) == -1) in main() [all …]
|
| /freebsd-12.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-12.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-12.1/sys/kern/ |
| H A D | uipc_socket.c | 2747 int error, optval; local 2806 error = sooptcopyin(sopt, &optval, sizeof optval, 2811 if (optval) 2819 error = sooptcopyin(sopt, &optval, sizeof optval, 2824 if (optval < 0 || optval >= rt_numfibs) { 2848 error = sooptcopyin(sopt, &optval, sizeof optval, 2857 if (optval < 1) { 2914 error = sooptcopyin(sopt, &optval, sizeof optval, 2918 if (optval < 0 || optval > SO_TS_CLOCK_MAX) { 2982 int error, optval; local [all …]
|
| /freebsd-12.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-12.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-12.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() 1246 void *optval, size_t optlen) in ucma_set_option_ib() argument 1252 ret = ucma_set_ib_path(ctx, optval, optlen); in ucma_set_option_ib() 1262 int optname, void *optval, size_t optlen) in ucma_set_option_level() argument 1268 ret = ucma_set_option_id(ctx, optname, optval, optlen); in ucma_set_option_level() 1285 void *optval; in ucma_set_option() local 1295 optval = memdup_user((void __user *) (unsigned long) cmd.optval, in ucma_set_option() 1297 if (IS_ERR(optval)) { in ucma_set_option() 1298 ret = PTR_ERR(optval); in ucma_set_option() [all …]
|
| /freebsd-12.1/sys/netinet/tcp_stacks/ |
| H A D | rack.c | 8892 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in rack_set_sockopt() 8904 if ((optval <= 0) || (optval >= 100)) { in rack_set_sockopt() 8912 if ((optval < TLP_USE_ID) || (optval > TLP_USE_TWO_TWO)) { in rack_set_sockopt() 8937 if (optval > 0) in rack_set_sockopt() 8945 if (optval) in rack_set_sockopt() 8974 if ((optval > 0) && (optval < 31)) in rack_set_sockopt() 8987 if (optval) in rack_set_sockopt() 9004 if (optval) in rack_set_sockopt() 9022 if (optval > 3) in rack_set_sockopt() 9043 if (optval) in rack_set_sockopt() [all …]
|
| /freebsd-12.1/usr.sbin/ppp/ |
| H A D | bundle.c | 1058 optval(struct bundle *bundle, int opt) in optval() function 1123 optval(arg->bundle, OPT_IDCHECK)); in bundle_ShowStatus() 1125 optval(arg->bundle, OPT_IFACEALIAS)); in bundle_ShowStatus() 1128 optval(arg->bundle, OPT_IPCP)); in bundle_ShowStatus() 1130 optval(arg->bundle, OPT_IPV6CP)); in bundle_ShowStatus() 1135 optval(arg->bundle, OPT_LOOPBACK)); in bundle_ShowStatus() 1137 optval(arg->bundle, OPT_PASSWDAUTH)); in bundle_ShowStatus() 1139 optval(arg->bundle, OPT_PROXY)); in bundle_ShowStatus() 1141 optval(arg->bundle, OPT_PROXYALL)); in bundle_ShowStatus() 1143 optval(arg->bundle, OPT_SROUTES)); in bundle_ShowStatus() [all …]
|
| /freebsd-12.1/contrib/wpa/src/drivers/ |
| H A D | driver_nl80211_monitor.c | 345 int optval; in nl80211_create_monitor_interface() local 423 optlen = sizeof(optval); in nl80211_create_monitor_interface() 424 optval = 20; in nl80211_create_monitor_interface() 426 (drv->monitor_sock, SOL_SOCKET, SO_PRIORITY, &optval, optlen)) { in nl80211_create_monitor_interface()
|