HomeSort by: relevance | last modified time | path
    Searched defs:optval (Results 1 - 22 of 22) sorted by relevancy

  /src/sys/compat/common/
kern_uipc_socket_50.c 126 int optval, error; local in function:uipc_socket_50_getopt1
133 optval = (opt == SO_OSNDTIMEO ?
136 otv.tv_sec = optval / hz;
137 otv.tv_usec = (optval % hz) * tick;
155 int optval, error; local in function:uipc_socket_50_setopt1
181 optval = tv.tv_sec * hz + tv.tv_usec / tick;
182 if (optval == 0 && tv.tv_usec != 0)
183 optval = 1;
187 so->so_snd.sb_timeo = optval;
190 so->so_rcv.sb_timeo = optval;
    [all...]
  /src/usr.bin/sort/
init.c 173 for(; (tmp = optval(*pos, cur_fld->tcol.num)); pos++)
223 optval(int desc, int tcolflag) function in typeref:typename:int
  /src/tests/net/inpcb/
inpcb_bind.c 37 int error, optval; local in function:runtest
46 optval = 1;
48 &optval, sizeof(int));
56 optval = 1;
58 &optval, sizeof(int));
  /src/sys/netinet/
raw_ip.c 407 int optval; local in function:rip_ctloutput
411 optval = (inp->inp_flags & INP_NOHEADER) ? 1 : 0;
412 error = sockopt_set(sopt, &optval, sizeof(optval));
414 error = sockopt_getint(sopt, &optval);
417 if (optval) {
432 error = sockopt_getint(sopt, &optval);
435 if (optval)
465 optval = inp->inp_flags & INP_HDRINCL;
466 error = sockopt_set(sopt, &optval, sizeof(optval))
    [all...]
tcp_usrreq.c 266 int level, optname, optval; local in function:tcp_ctloutput
300 error = sockopt_getint(sopt, &optval);
303 if (optval > 0)
311 error = sockopt_getint(sopt, &optval);
314 if (optval)
321 error = sockopt_getint(sopt, &optval);
324 if (optval > 0 && optval <= tp->t_peermss)
325 tp->t_peermss = optval; /* limit on send size */
390 optval = (tp->t_flags & TF_SIGNATURE) ? 1 : 0
    [all...]
udp_usrreq.c 696 int optval; local in function:udp_ctloutput
730 error = sockopt_getint(sopt, &optval);
734 switch(optval) {
ip_output.c 1100 int optval = 0, error = 0; local in function:ip_ctloutput
1131 error = sockopt_getint(sopt, &optval);
1137 ip->ip_tos = optval;
1141 ip->ip_ttl = optval;
1145 if (optval > 0 && optval <= MAXTTL)
1146 in4p_ip_minttl(inp) = optval;
1151 if (optval) \
1192 error = sockopt_getint(sopt, &optval);
1241 error = sockopt_getint(sopt, &optval);
1617 uint8_t optval, olen, offset; local in function:ip_pcbopts
2073 uint8_t optval; local in function:ip_getmoptions
    [all...]
dccp_usrreq.c 972 int optval; local in function:dccp_optsset
977 error = sockopt_getint(sopt, &optval);
978 /* Add check that optval is a CCID we support!!! */
979 if (optval == 2 || optval == 3 || optval == 0) {
980 dp->pref_cc = optval;
986 error = sockopt_getint(sopt, &optval);
987 if (optval > 15 || optval < 0)
1016 int optval = 0; local in function:dccp_optsget
    [all...]
sctp_usrreq.c 1330 int error, optval=0; local in function:sctp_optsget
1360 optval = inp->sctp_flags & SCTP_PCB_FLAGS_NO_FRAGMENT;
1363 optval = inp->sctp_flags & SCTP_PCB_FLAGS_NEEDS_MAPPED_V4;
1366 optval = inp->sctp_flags & SCTP_PCB_FLAGS_AUTO_ASCONF;
1369 optval = inp->sctp_flags & SCTP_PCB_FLAGS_NODELAY;
1374 optval = inp->sctp_ep.auto_close_time;
1376 optval = 0;
1384 optval = (optval != 0);
1393 *ovp = optval;
    [all...]
ip_mroute.c 412 int optval; local in function:ip_mrouter_set
422 error = sockopt_getint(sopt, &optval);
426 error = ip_mrouter_init(so, optval);
450 error = sockopt_getint(sopt, &optval);
453 error = set_assert(optval);
  /src/sys/netbt/
hci_socket.c 713 int optval, err = 0; local in function:hci_ctloutput
765 err = sockopt_getint(sopt, &optval);
769 if (optval)
  /src/sys/netcan/
can.c 862 int optval = 0; local in function:can_raw_getop
867 optval = (canp->canp_flags & CANP_NO_LOOPBACK) ? 0 : 1;
868 error = sockopt_set(sopt, &optval, sizeof(optval));
871 optval = (canp->canp_flags & CANP_RECEIVE_OWN) ? 1 : 0;
872 error = sockopt_set(sopt, &optval, sizeof(optval));
888 int optval = 0; local in function:can_raw_setop
893 error = sockopt_getint(sopt, &optval);
895 if (optval) {
    [all...]
  /src/sys/netinet6/
raw_ip6.c 541 int optval; local in function:rip6_ctloutput
545 optval = 1;
546 error = sockopt_set(sopt, &optval, sizeof(optval));
548 error = sockopt_getint(sopt, &optval);
551 if (optval == 0)
udp6_usrreq.c 307 int optval; local in function:udp6_ctloutput
340 error = sockopt_getint(sopt, &optval);
344 switch(optval) {
ip6_output.c 1306 int error, optval; local in function:ip6_ctloutput
1315 error = optval = 0;
1386 error = sockopt_getint(sopt, &optval);
1391 if (optval < -1 || optval >= 256)
1395 in6p_hops6(inp) = optval;
1400 if (optval) \
1410 if (optval) \
1443 (u_char *)&optval,
1444 sizeof(optval),
1964 int error = 0, optval; local in function:ip6_raw_ctloutput
2495 int optval; local in function:ip6_setmoptions
2698 u_int optval; local in function:ip6_getmoptions
    [all...]
ip6_mroute.c 315 int error, optval; local in function:ip6_mrouter_set
330 error = sockopt_getint(sopt, &optval);
333 return (ip6_mrouter_init(so, optval, sopt->sopt_name));
357 error = sockopt_getint(sopt, &optval);
360 return (set_pim6(&optval));
  /src/sys/kern/
uipc_usrreq.c 615 int optval = 0, error = 0; local in function:uipc_ctloutput
633 error = sockopt_getint(sopt, &optval);
638 if (optval) \
676 optval = OPTBIT(UNP_WANTCRED);
677 error = sockopt_setint(sopt, optval);
681 optval = OPTBIT(UNP_OWANTCRED);
682 error = sockopt_setint(sopt, optval);
uipc_socket.c 1746 int optval = 0; /* XXX: gcc */ local in function:sosetopt1
1787 error = sockopt_getint(sopt, &optval);
1791 if (optval)
1801 error = sockopt_getint(sopt, &optval);
1810 if (optval < 1) {
1817 if (sbreserve(&so->so_snd, (u_long)optval, so) == 0) {
1826 if (sbreserve(&so->so_rcv, (u_long)optval, so) == 0) {
1839 if (optval > so->so_snd.sb_hiwat)
1840 optval = so->so_snd.sb_hiwat;
1842 so->so_snd.sb_lowat = optval;
1951 int error, optval, opt; local in function:sogetopt1
    [all...]
  /src/usr.bin/nc/
netcat.c 976 int optval; local in function:timeout_connect
983 optlen = sizeof(optval);
985 &optval, &optlen)) == 0) {
986 errno = optval;
987 ret = optval == 0 ? 0 : -1;
  /src/sbin/ping/
ping.c 647 int optval; local in function:main
649 optval = IPSEC_LEVEL_REQUIRE;
652 (char *)&optval, sizeof(optval));
655 (char *)&optval, sizeof(optval));
659 optval = IPSEC_LEVEL_REQUIRE;
661 (char *)&optval, sizeof(optval));
663 optval = IPSEC_LEVEL_BYPASS
    [all...]
  /src/sbin/ping6/
ping6.c 284 int ch, hold, preload, optval, ret_ga; local in function:main
697 optval = IPV6_DEFHLIM;
700 &optval, sizeof(optval)) == -1)
704 optval = mflag > 1 ? 0 : 1;
707 &optval, sizeof(optval)) == -1)
710 optval = 1;
712 &optval, sizeof(optval)) == -1
    [all...]
  /src/sys/dev/usb/
xhci.c 4257 int optval = (index >> 8) & 0xff; local in function:xhci_roothub_ctrl_locked
4306 v |= XHCI_PM3_U1TO_SET(optval);
4318 v |= XHCI_PM3_U2TO_SET(optval);

Completed in 57 milliseconds