| /freebsd-12-stable/bin/sh/ |
| 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 …]
|
| 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-stable/sys/netinet/ |
| D | ip_output.c | 982 int error, optval; in ip_ctloutput() local 988 error = optval = 0; in ip_ctloutput() 1105 error = sooptcopyin(sopt, &optval, sizeof optval, in ip_ctloutput() 1106 sizeof optval); in ip_ctloutput() 1112 inp->inp_ip_tos = optval; in ip_ctloutput() 1116 inp->inp_ip_ttl = optval; in ip_ctloutput() 1120 if (optval >= 0 && optval <= MAXTTL) in ip_ctloutput() 1121 inp->inp_ip_minttl = optval; in ip_ctloutput() 1128 if (optval) \ in ip_ctloutput() 1157 OPTSET2(INP_ORIGDSTADDR, optval); in ip_ctloutput() [all …]
|
| D | tcp_usrreq.c | 1845 int error, opt, optval; in tcp_default_ctloutput() local 1898 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 1899 sizeof optval); in tcp_default_ctloutput() 1916 if (optval) in tcp_default_ctloutput() 1932 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 1933 sizeof optval); in tcp_default_ctloutput() 1938 if (optval) in tcp_default_ctloutput() 1949 error = sooptcopyin(sopt, &optval, sizeof optval, in tcp_default_ctloutput() 1950 sizeof optval); in tcp_default_ctloutput() 1955 if (optval > 0 && optval <= tp->t_maxseg && in tcp_default_ctloutput() [all …]
|
| D | sctp_usrreq.c | 1330 sctp_do_connect_x(struct socket *so, struct sctp_inpcb *inp, void *optval, in sctp_do_connect_x() argument 1374 totaddrp = (unsigned int *)optval; in sctp_do_connect_x() 1455 a_id = (sctp_assoc_t *)optval; in sctp_do_connect_x() 1508 sctp_getopt(struct socket *so, int optname, void *optval, size_t *optsize, argument 1515 if (optval == NULL) { 1581 *(int *)optval = val; 1591 SCTP_CHECK_AND_CAST(target, optval, uint8_t, *optsize); 1609 SCTP_CHECK_AND_CAST(value, optval, uint32_t, *optsize); 1618 SCTP_CHECK_AND_CAST(value, optval, uint32_t, *optsize); 1627 SCTP_CHECK_AND_CAST(value, optval, uint32_t, *optsize); [all …]
|
| /freebsd-12-stable/tools/regression/usr.bin/env/ |
| D | regress-sb.rb | 331 def RGTestOptions.parse(optname, optval) argument 349 optval.gsub!(/\[%- testpgm\.pathname -%\]/x, $testpgm) 350 optval.gsub!(/\[%- testpgm\.basename -%\]/x, File.basename($testpgm)) 351 optval.gsub!(/\[%- script\.pathname -%\]/x, $scriptfile) 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*)=(.*)$/ [all …]
|
| /freebsd-12-stable/sys/netinet6/ |
| D | ip6_output.c | 1458 int error, optval; in ip6_ctloutput() local 1482 optval = 0; in ip6_ctloutput() 1625 error = sooptcopyin(sopt, &optval, in ip6_ctloutput() 1626 sizeof optval, sizeof optval); in ip6_ctloutput() 1632 if (optval < -1 || optval >= 256) in ip6_ctloutput() 1636 inp->in6p_hops = optval; in ip6_ctloutput() 1639 inp->inp_ip_ttl = optval; in ip6_ctloutput() 1645 if (optval) \ in ip6_ctloutput() 1655 if (optval) \ in ip6_ctloutput() 1681 if (optval) \ in ip6_ctloutput() [all …]
|
| /freebsd-12-stable/sys/netipsec/ |
| 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()
|
| 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-stable/usr.sbin/rrenumd/ |
| 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-stable/crypto/heimdal/lib/roken/ |
| 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-stable/sbin/ping6/ |
| D | ping6.c | 304 int almost_done, ch, hold, packlen, preload, optval, error; in main() local 780 optval = 1; in main() 783 &optval, sizeof(optval)) == -1) in main() 793 optval = IPV6_DEFHLIM; in main() 796 &optval, sizeof(optval)) == -1) in main() 800 optval = mflag > 1 ? 0 : 1; in main() 803 &optval, sizeof(optval)) == -1) in main() 808 optval = 1; in main() 810 &optval, sizeof(optval)) == -1) in main() 826 optval = IPSEC_LEVEL_REQUIRE; in main() [all …]
|
| /freebsd-12-stable/usr.sbin/mtest/ |
| 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-stable/contrib/ofed/librdmacm/examples/ |
| 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-stable/sys/kern/ |
| D | uipc_socket.c | 2740 so_setsockopt(struct socket *so, int level, int optname, void *optval, argument 2748 sopt.sopt_val = optval; 2757 int error, optval; local 2817 error = sooptcopyin(sopt, &optval, sizeof optval, 2818 sizeof optval); 2822 if (optval) 2830 error = sooptcopyin(sopt, &optval, sizeof optval, 2831 sizeof optval); 2835 if (optval < 0 || optval >= rt_numfibs) { 2842 so->so_fibnum = optval; [all …]
|
| /freebsd-12-stable/sbin/ipf/libipf/ |
| D | optvalue.c | 26 getoptbyvalue(int optval) in getoptbyvalue() argument 31 if (io->on_value == optval) in getoptbyvalue()
|
| D | v6optvalue.c | 27 u_32_t getv6optbyvalue(int optval) in getv6optbyvalue() argument 33 if (io->on_value == optval) in getv6optbyvalue()
|
| /freebsd-12-stable/contrib/ofed/librdmacm/ |
| D | rsocket.c | 358 void *optval; member 1314 if (rs->optval) { in rs_do_connect() 1316 RDMA_OPTION_IB_PATH, rs->optval, in rs_do_connect() 1318 free(rs->optval); in rs_do_connect() 1319 rs->optval = NULL; in rs_do_connect() 3387 const void *optval, socklen_t optlen) in rsetsockopt() argument 3398 ret = setsockopt(rs->udp_sock, level, optname, optval, optlen); in rsetsockopt() 3411 (void *) optval, optlen); in rsetsockopt() 3417 opt_on = *(int *) optval; in rsetsockopt() 3422 rs->rbuf_size = (*(uint32_t *) optval) << 1; in rsetsockopt() [all …]
|
| D | rsocket.h | 86 const void *optval, socklen_t optlen); 88 void *optval, socklen_t *optlen);
|
| /freebsd-12-stable/contrib/ofed/opensm/opensm/ |
| D | osm_console_io.c | 204 int optval = 1; in osm_console_init() local 214 &optval, sizeof(optval))) { in osm_console_init()
|
| /freebsd-12-stable/sys/ofed/drivers/infiniband/core/ |
| 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() 1198 ret = rdma_set_reuseaddr(ctx->cm_id, *((int *) optval) ? 1 : 0); in ucma_set_option_id() 1205 ret = rdma_set_afonly(ctx->cm_id, *((int *) optval) ? 1 : 0); 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() 1271 ret = ucma_set_option_ib(ctx, optname, optval, optlen); in ucma_set_option_level() 1285 void *optval; in ucma_set_option() local [all …]
|
| /freebsd-12-stable/sys/compat/linux/ |
| D | linux_socket.c | 421 int error, optval; in linux_check_hdrincl() local 424 size_val = sizeof(optval); in linux_check_hdrincl() 426 &optval, UIO_SYSSPACE, &size_val); in linux_check_hdrincl() 430 return (optval == 0); in linux_check_hdrincl() 1443 error = copyin(PTRIN(args->optval), &linux_tv, in linux_setsockopt() 1483 error = linux_to_bsd_sockaddr(PTRIN(args->optval), &sa, &len); in linux_setsockopt() 1492 name, PTRIN(args->optval), UIO_USERSPACE, args->optlen); in linux_setsockopt() 1525 return (copyout(&linux_tv, PTRIN(args->optval), in linux_getsockopt() 1544 return (copyout(&lxu, PTRIN(args->optval), sizeof(lxu))); in linux_getsockopt() 1553 return (copyout(&newval, PTRIN(args->optval), len)); in linux_getsockopt() [all …]
|
| /freebsd-12-stable/usr.sbin/ppp/ |
| D | bundle.c | 1058 optval(struct bundle *bundle, int opt) in optval() function 1121 optval(arg->bundle, OPT_FILTERDECAP)); in bundle_ShowStatus() 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() 1133 optval(arg->bundle, OPT_KEEPSESSION)); 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() [all …]
|
| /freebsd-12-stable/sys/netinet/tcp_stacks/ |
| D | rack.c | 8885 int32_t error = 0, optval; in rack_set_sockopt() local 8916 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval)); in rack_set_sockopt() 8928 if ((optval <= 0) || (optval >= 100)) { in rack_set_sockopt() 8933 rack->r_ctl.rc_prop_rate = optval; in rack_set_sockopt() 8936 if ((optval < TLP_USE_ID) || (optval > TLP_USE_TWO_TWO)) { in rack_set_sockopt() 8941 rack->rack_tlp_threshold_use = optval; in rack_set_sockopt() 8946 rack->r_ctl.rc_prop_reduce = optval; in rack_set_sockopt() 8951 rack->r_ctl.rc_tlp_cwnd_reduce = optval; in rack_set_sockopt() 8956 rack->r_ctl.rc_early_recovery = optval; in rack_set_sockopt() 8961 if (optval > 0) in rack_set_sockopt() [all …]
|
| /freebsd-12-stable/contrib/wpa/src/drivers/ |
| D | driver_nl80211_monitor.c | 348 int optval; in nl80211_create_monitor_interface() local 426 optlen = sizeof(optval); in nl80211_create_monitor_interface() 427 optval = 20; in nl80211_create_monitor_interface() 429 (drv->monitor_sock, SOL_SOCKET, SO_PRIORITY, &optval, optlen)) { in nl80211_create_monitor_interface()
|