Home
last modified time | relevance | path

Searched refs:optval (Results 1 – 25 of 75) sorted by relevance

123

/freebsd-12.1/bin/sh/
H A Doptions.h50 #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 Doptions.c97 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 Dip_output.c968 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 Dtcp_usrreq.c1863 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 Dsctp_usrreq.c1396 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 Draw_ip.c619 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 Dregress-sb.rb356 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 Dip6_output.c1467 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 Dudpencap.c71 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 Dxform_tcp.c81 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 Drrenumd.c277 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 Dsocket_wrapper.h46 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 Doptvalue.c25 u_32_t getoptbyvalue(optval) in getoptbyvalue() argument
26 int optval; in getoptbyvalue()
31 if (io->on_value == optval)
H A Dv6optvalue.c28 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 Dping6.c771 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 Dmtest.c388 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 Drstream.c260 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 Duipc_socket.c2747 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 Drsocket.c358 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 Drsocket.h86 const void *optval, socklen_t optlen);
88 void *optval, socklen_t *optlen);
/freebsd-12.1/contrib/ofed/opensm/opensm/
H A Dosm_console_io.c204 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 Dib_ucma.c1181 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 Drack.c8892 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 Dbundle.c1058 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 Ddriver_nl80211_monitor.c345 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()

123