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

/darwin-on-arm/xnu/bsd/netinet/
H A Dtcp_usrreq.c1318 int error, opt, optval; local
1351 error = sooptcopyin(sopt, &optval, sizeof optval,
1352 sizeof optval);
1371 if (optval)
1377 error = sooptcopyin(sopt, &optval, sizeof optval,
1378 sizeof optval);
1382 if (optval)
1388 error = sooptcopyin(sopt, &optval, sizeo
[all...]
H A Din_tclass.c626 so_set_traffic_class(struct socket *so, int optval) argument
630 if (optval < SO_TC_BE || optval > SO_TC_CTL) {
633 switch (optval) {
635 optval = SO_TC_BK;
638 optval = SO_TC_VI;
641 optval = SO_TC_VO;
644 if (!SO_VALID_TC(optval))
652 VERIFY(SO_VALID_TC(optval));
653 so->so_traffic_class = optval;
699 so_set_opportunistic(struct socket *so, int optval) argument
1079 so_set_lro(struct socket *so, int optval) argument
[all...]
H A Draw_ip.c519 int error, optval; local
532 optval = inp->inp_flags & INP_HDRINCL;
533 error = sooptcopyout(sopt, &optval, sizeof optval);
537 optval = inp->inp_flags & INP_STRIPHDR;
538 error = sooptcopyout(sopt, &optval, sizeof optval);
588 error = sooptcopyin(sopt, &optval, sizeof optval,
589 sizeof optval);
[all...]
H A Dip_output.c2296 int error, optval; local
2298 error = optval = 0;
2340 error = sooptcopyin(sopt, &optval, sizeof optval,
2341 sizeof optval);
2347 inp->inp_ip_tos = optval;
2351 inp->inp_ip_ttl = optval;
2354 if (optval) \
2475 error = sooptcopyin(sopt, &optval, sizeof optval,
[all...]
H A Dudp_usrreq.c918 int error, optval; local
939 if ((error = sooptcopyin(sopt, &optval, sizeof (optval),
940 sizeof (optval))) != 0)
943 if (optval != 0)
950 if ((error = sooptcopyin(sopt, &optval, sizeof (optval),
951 sizeof (optval))) != 0)
954 error = inp_flush(inp, optval);
966 optval
[all...]
H A Dip_mroute.c398 int error, optval; local
409 error = sooptcopyin(sopt, &optval, sizeof optval,
410 sizeof optval);
413 error = ip_mrouter_init(so, optval);
446 error = sooptcopyin(sopt, &optval, sizeof optval,
447 sizeof optval);
450 set_assert(optval);
H A Din_mcast.c1848 int error, optval; local
1869 optval = imo->imo_multicast_vif;
1872 optval = -1;
1873 error = sooptcopyout(sopt, &optval, sizeof(int));
1921 optval = coptval = IP_DEFAULT_MULTICAST_TTL;
1924 optval = coptval = imo->imo_multicast_ttl;
1930 error = sooptcopyout(sopt, &optval, sizeof(int));
1935 optval = coptval = IP_DEFAULT_MULTICAST_LOOP;
1938 optval = coptval = imo->imo_multicast_loop;
1944 error = sooptcopyout(sopt, &optval, sizeo
[all...]
H A Din_pcb.c2245 inp_flush(struct inpcb *inp, int optval) argument
2251 if (optval != SO_TC_ALL && !SO_VALID_TC(optval))
2261 if_qflush_sc(ifp, so_tc2msc(optval), flowhash, NULL, NULL, 0);
/darwin-on-arm/xnu/bsd/netinet6/
H A Dip6_output.c1847 int error = 0, optval = 0; local
1919 error = sooptcopyin(sopt, &optval,
1920 sizeof optval, sizeof optval);
1926 if (optval < -1 || optval >= 256)
1930 in6p->in6p_hops = optval;
1933 in6p->inp_ip_ttl = optval;
1938 if (optval) \
1946 if (optval) \
2531 int error = 0, optval, optlen; local
[all...]
H A Dip6_mroute.c271 int optval; local
284 error = sooptcopyin(sopt, &optval, sizeof(optval),
285 sizeof(optval));
288 error = ip6_mrouter_init(so, optval, sopt->sopt_name);
318 error = sooptcopyin(sopt, &optval, sizeof(optval),
319 sizeof(optval));
322 error = set_pim6(&optval);
H A Draw_ip6.c636 int error, optval; local
722 if ((error = sooptcopyin(sopt, &optval, sizeof (optval),
723 sizeof (optval))) != 0)
726 error = inp_flush(sotoinpcb(so), optval);
H A Din6_mcast.c1782 u_int optval; local
1801 optval = 0;
1803 optval = im6o->im6o_multicast_ifp->if_index;
1807 error = sooptcopyout(sopt, &optval, sizeof(u_int));
1812 optval = ip6_defmcasthlim;
1815 optval = im6o->im6o_multicast_hlim;
1818 error = sooptcopyout(sopt, &optval, sizeof(u_int));
1823 optval = in6_mcast_loop; /* XXX VIMAGE */
1826 optval = im6o->im6o_multicast_loop;
1829 error = sooptcopyout(sopt, &optval, sizeo
[all...]
/darwin-on-arm/xnu/bsd/netat/
H A Dddp.c140 int optval, error = 0; local
150 optval = at_pcb->ddp_flags & DDPFLG_HDRINCL;
151 error = sooptcopyout(sopt, &optval, sizeof optval);
154 optval = at_pcb->ddp_flags & DDPFLG_CHKSUM;
155 error = sooptcopyout(sopt, &optval, sizeof optval);
158 optval = at_pcb->ddp_flags & DDPFLG_STRIPHDR;
159 error = sooptcopyout(sopt, &optval, sizeof optval);
[all...]
/darwin-on-arm/xnu/bsd/sys/
H A Dkpi_socket.h173 @param optval The option value.
174 @param optlen The length of optval, returns the actual length.
178 void *optval, int *optlen);
196 @param optval The option value.
197 @param optlen The length of optval.
201 const void *optval, int optlen);
214 @param optval The option value.
215 @param optlen The length of optval.
218 extern errno_t sock_settclassopt(socket_t so, const void* optval, size_t optlen);
229 @param optval Th
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Duipc_socket.c2983 int error, optval; local
3050 error = sooptcopyin(sopt, &optval, sizeof (optval),
3051 sizeof (optval));
3054 if (optval)
3064 error = sooptcopyin(sopt, &optval, sizeof (optval),
3065 sizeof (optval));
3073 if (optval < 1) {
3084 if (sbreserve(sb, (u_int32_t) optval)
3452 int error, optval; local
4434 so_set_recv_anyif(struct socket *so, int optval) argument
[all...]
H A Dkpi_socket.c467 void *optval,
473 if (sock == NULL || optval == NULL || optlen == NULL) return EINVAL;
477 sopt.sopt_val = CAST_USER_ADDR_T(optval);
499 const void *optval,
504 if (sock == NULL || optval == NULL) return EINVAL;
508 sopt.sopt_val = CAST_USER_ADDR_T(optval);
538 const void *optval,
545 if (sock == NULL || optval == NULL || optlen != sizeof(int)) return EINVAL;
566 sotc = so_tc_from_dscp((*(const int *)optval) >> 2);
593 sopt.sopt_val = CAST_USER_ADDR_T(optval);
463 sock_getsockopt( socket_t sock, int level, int optname, void *optval, int *optlen) argument
495 sock_setsockopt( socket_t sock, int level, int optname, const void *optval, int optlen) argument
536 sock_settclassopt( socket_t sock, const void *optval, size_t optlen) argument
619 sock_gettclassopt( socket_t sock, void *optval, size_t *optlen) argument
[all...]

Completed in 146 milliseconds