/freebsd-current/bin/sh/ |
H A D | options.h | 47 #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 D | options.c | 89 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 D | optvalue.c | 25 getoptbyvalue(int optval) argument 30 if (io->on_value == optval)
|
H A D | v6optvalue.c | 26 u_32_t getv6optbyvalue(int optval) argument 32 if (io->on_value == optval)
|
/freebsd-current/tests/sys/netlink/ |
H A D | test_snl.c | 65 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 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) 97 #define setsockopt(s,level,optname,optval,optlen) swrap_setsockopt(s,level,optname,optval,optlen)
|
/freebsd-current/sys/netinet/ |
H A D | ip_output.c | 1070 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 D | tcp_usrreq.c | 2009 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 D | sctp_usrreq.c | 1334 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 D | regress-sb.rb | 330 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 D | rrenumd.c | 275 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 D | ip6_output.c | 1612 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 D | udpencap.c | 73 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 D | xform_tcp.c | 80 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 D | netlink_domain.c | 859 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 D | sockopt.h | 66 void *optval, size_t optlen);
|
/freebsd-current/contrib/ofed/librdmacm/ |
H A D | rsocket.h | 86 const void *optval, socklen_t optlen); 88 void *optval, socklen_t *optlen);
|
/freebsd-current/usr.sbin/mtest/ |
H A D | mtest.c | 385 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 D | iscsid.c | 230 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 D | rstream.c | 260 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 D | ping6.c | 276 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 D | osm_console_io.c | 204 int optval = 1; local 214 &optval, sizeof(optval))) {
|
/freebsd-current/sys/ofed/drivers/infiniband/core/ |
H A D | ib_ucma.c | 1182 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 D | uipc_socket.c | 3092 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 D | driver_nl80211_monitor.c | 348 int optval; local 426 optlen = sizeof(optval); 427 optval = 20; 429 (drv->monitor_sock, SOL_SOCKET, SO_PRIORITY, &optval, optlen)) {
|