Home
last modified time | relevance | path

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

1234

/freebsd/bin/sh/
H A Doptions.h47 #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 Doptions.c89 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 Dip_output.c1070 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 Dtcp_usrreq.c2107 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 Dsctp_usrreq.c1378 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 Draw_ip.c635 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 Dregress-sb.rb355 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 Dtest_snl.c65 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 Dip6_output.c1636 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 Dnetlink_domain.c859 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 Drrenumd.c275 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 Dudpencap.c73 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 Dxform_tcp.c80 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 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/sbin/ping/
H A Dping6.c769 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 Dmtest.c385 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 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/usr.sbin/iscsid/
H A Discsid.c230 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 Doptvalue.c25 getoptbyvalue(int optval) in getoptbyvalue() argument
30 if (io->on_value == optval) in getoptbyvalue()
H A Dv6optvalue.c26 u_32_t getv6optbyvalue(int optval) in getv6optbyvalue() argument
32 if (io->on_value == optval) in getv6optbyvalue()
/freebsd/sys/kern/
H A Duipc_socket.c3109 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 Dosm_console_io.c204 int optval = 1; in osm_console_init() local
214 &optval, sizeof(optval))) { in osm_console_init()
/freebsd/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/sys/ofed/drivers/infiniband/core/
H A Dib_ucma.c1182 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 …]

1234