Searched refs:optval (Results 1 - 25 of 84) sorted by relevance

1234

/freebsd-current/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[
76 char optval[NOPTS]; variable
[all...]
H A Doptions.c89 optval[i] = 2;
102 if (optval[i] == 2)
103 optval[i] = 0;
254 optval[i] ? "on" : "off");
260 optval[i] ? '-' : '+',
279 if (&optval[idx] == &privileged && !val && privileged) {
285 optval[idx] = val;
288 if (&optval[idx] == &Vflag)
290 else if (&optval[idx] == &Eflag)
/freebsd-current/sbin/ipf/libipf/
H A Doptvalue.c25 getoptbyvalue(int optval) argument
30 if (io->on_value == optval)
H A Dv6optvalue.c26 u_32_t getv6optbyvalue(int optval) argument
32 if (io->on_value == optval)
/freebsd-current/tests/sys/netlink/
H A Dtest_snl.c65 int optval = 1; local
66 ATF_CHECK(setsockopt(ss.fd, SOL_NETLINK, NETLINK_CAP_ACK, &optval, sizeof(optval)) == 0);
105 int optval = 1; local
106 ATF_CHECK(setsockopt(ss.fd, SOL_NETLINK, NETLINK_CAP_ACK, &optval, sizeof(optval)) == 0);
107 optval = 1;
108 ATF_CHECK(setsockopt(ss.fd, SOL_NETLINK, NETLINK_EXT_ACK, &optval, sizeof(optval)) == 0);
147 int optval local
[all...]
/freebsd-current/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)
97 #define setsockopt(s,level,optname,optval,optlen) swrap_setsockopt(s,level,optname,optval,optlen)
/freebsd-current/sys/netinet/
H A Dip_output.c1070 int error, optval; local
1076 error = optval = 0;
1162 error = sooptcopyin(sopt, &optval, sizeof optval,
1163 sizeof optval);
1169 inp->inp_ip_tos = optval;
1173 inp->inp_ip_ttl = optval;
1177 if (optval >= 0 && optval <= MAXTTL)
1178 inp->inp_ip_minttl = optval;
[all...]
H A Dtcp_usrreq.c2009 int error, opt, optval;
2092 error = sooptcopyin(sopt, &optval, sizeof optval,
2093 sizeof optval);
2110 if (optval)
2126 error = sooptcopyin(sopt, &optval, sizeof optval,
2127 sizeof optval);
2132 if (optval)
2148 error = sooptcopyin(sopt, &optval, sizeo
2024 int error, opt, optval; local
[all...]
H A Dsctp_usrreq.c1334 sctp_do_connect_x(struct socket *so, struct sctp_inpcb *inp, void *optval, argument
1378 totaddrp = (unsigned int *)optval;
1452 a_id = (sctp_assoc_t *)optval;
1504 sctp_getopt(struct socket *so, int optname, void *optval, size_t *optsize, argument
1511 if (optval == NULL) {
1577 *(int *)optval = val;
1587 SCTP_CHECK_AND_CAST(target, optval, uint8_t, *optsize);
1605 SCTP_CHECK_AND_CAST(value, optval, uint32_t, *optsize);
1614 SCTP_CHECK_AND_CAST(value, optval, uint32_t, *optsize);
1623 SCTP_CHECK_AND_CAST(value, optval, uint32_
3718 sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize, void *p) argument
6867 void *optval = NULL; local
[all...]
/freebsd-current/tools/regression/usr.bin/env/
H A Dregress-sb.rb330 def RGTestOptions.parse(optname, optval)
348 optval.gsub!(/\[%- testpgm\.pathname -%\]/x, $testpgm)
349 optval.gsub!(/\[%- testpgm\.basename -%\]/x, File.basename($testpgm))
350 optval.gsub!(/\[%- script\.pathname -%\]/x, $scriptfile)
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
[all...]
/freebsd-current/usr.sbin/rrenumd/
H A Drrenumd.c275 int optval; local
330 optval = IPSEC_LEVEL_REQUIRE;
332 &optval, sizeof(optval)) == -1) {
339 optval = IPSEC_LEVEL_REQUIRE;
341 &optval, sizeof(optval)) == -1) {
360 int optval; local
394 optval = IPSEC_LEVEL_REQUIRE;
396 &optval, sizeo
[all...]
/freebsd-current/sys/netinet6/
H A Dip6_output.c1612 int error, optval; local
1636 optval = 0;
1747 error = sooptcopyin(sopt, &optval,
1748 sizeof optval, sizeof optval);
1753 if (optval < -1 || optval >= 256)
1757 inp->in6p_hops = optval;
1760 inp->inp_ip_ttl = optval;
1766 if (optval) \
2369 int error = 0, optval, optlen; local
[all...]
/freebsd-current/sys/netipsec/
H A Dudpencap.c73 int error, optval; local
84 optval = UDP_ENCAP_ESPINUDP;
86 optval = 0;
88 return (sooptcopyout(sopt, &optval, sizeof(optval)));
92 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval));
97 switch (optval) {
H A Dxform_tcp.c80 int error, optval; local
93 optval = (tp->t_flags & TF_SIGNATURE) ? 1 : 0;
97 return (sooptcopyout(sopt, &optval, sizeof(optval)));
100 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval));
111 if (optval > 0)
/freebsd-current/sys/netlink/
H A Dnetlink_domain.c859 int optval, error = 0; local
870 error = sooptcopyin(sopt, &optval, sizeof(optval), sizeof(optval));
873 if (optval <= 0 || optval >= NLP_MAX_GROUPS) {
877 NL_LOG(LOG_DEBUG2, "ADD/DEL group %d", (uint32_t)optval);
881 nl_add_group_locked(nlp, optval);
883 nl_del_group_locked(nlp, optval);
890 error = sooptcopyin(sopt, &optval, sizeo
959 int error, optval; local
[all...]
/freebsd-current/sys/sys/
H A Dsockopt.h66 void *optval, size_t optlen);
/freebsd-current/contrib/ofed/librdmacm/
H A Drsocket.h86 const void *optval, socklen_t optlen);
88 void *optval, socklen_t *optlen);
/freebsd-current/usr.sbin/mtest/
H A Dmtest.c385 void *optval; local
451 optval = (void *)&mr.mrs;
460 optval = (void *)&mr.mr;
466 } else if (setsockopt(s, level, optname, optval,
491 optval = (void *)&mr.gr;
502 optval = (void *)&mr.mr6;
508 } else if (setsockopt(s6, level, optname, optval,
631 optval = (void *)&mr.mrs;
653 if (setsockopt(s, level, optname, optval,
688 optval
[all...]
/freebsd-current/usr.sbin/iscsid/
H A Discsid.c230 int error, optval; local
302 optval = SOCKBUF_SIZE;
304 &optval, sizeof(optval)) == -1)
306 optval = SOCKBUF_SIZE;
308 &optval, sizeof(optval)) == -1)
310 optval = 1;
312 &optval, sizeof(optval))
[all...]
/freebsd-current/contrib/ofed/librdmacm/examples/
H A Drstream.c260 int optval; local
263 optval = 1;
264 if (rs_setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &optval, optlen)) {
269 optval = keepalive;
270 if (rs_setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &optval, optlen))
273 if (!(rs_getsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &optval, &optlen)))
274 printf("Keepalive: %s\n", (optval ? "ON" : "OFF"));
276 if (!(rs_getsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &optval, &optlen)))
277 printf(" time: %i\n", optval);
/freebsd-current/sbin/ping/
H A Dping6.c276 int almost_done, ch, hold, packlen, preload, optval, error; local
769 optval = 1;
772 &optval, sizeof(optval)) == -1)
782 optval = IPV6_DEFHLIM;
785 &optval, sizeof(optval)) == -1)
789 optval = mflag > 1 ? 0 : 1;
792 &optval, sizeof(optval))
[all...]
/freebsd-current/contrib/ofed/opensm/opensm/
H A Dosm_console_io.c204 int optval = 1; local
214 &optval, sizeof(optval))) {
/freebsd-current/sys/ofed/drivers/infiniband/core/
H A Dib_ucma.c1182 void *optval, size_t optlen)
1192 rdma_set_service_type(ctx->cm_id, *((u8 *) optval));
1199 ret = rdma_set_reuseaddr(ctx->cm_id, *((int *) optval) ? 1 : 0);
1206 ret = rdma_set_afonly(ctx->cm_id, *((int *) optval) ? 1 : 0);
1213 ret = rdma_set_ack_timeout(ctx->cm_id, *((u8 *)optval));
1254 void *optval, size_t optlen)
1260 ret = ucma_set_ib_path(ctx, optval, optlen);
1270 int optname, void *optval, size_t optlen)
1276 ret = ucma_set_option_id(ctx, optname, optval, optlen);
1279 ret = ucma_set_option_ib(ctx, optname, optval, optle
1181 ucma_set_option_id(struct ucma_context *ctx, int optname, void *optval, size_t optlen) argument
1253 ucma_set_option_ib(struct ucma_context *ctx, int optname, void *optval, size_t optlen) argument
1269 ucma_set_option_level(struct ucma_context *ctx, int level, int optname, void *optval, size_t optlen) argument
1293 void *optval; local
[all...]
/freebsd-current/sys/kern/
H A Duipc_socket.c3092 so_setsockopt(struct socket *so, int level, int optname, void *optval, argument
3100 sopt.sopt_val = optval;
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);
3333 int error, optval; local
[all...]
/freebsd-current/contrib/wpa/src/drivers/
H A Ddriver_nl80211_monitor.c348 int optval; local
426 optlen = sizeof(optval);
427 optval = 20;
429 (drv->monitor_sock, SOL_SOCKET, SO_PRIORITY, &optval, optlen)) {

Completed in 330 milliseconds

1234