/macosx-10.5.8/xnu-1228.15.4/bsd/netat/ |
H A D | ddp.c | 140 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...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | tcp_usrreq.c | 1102 int error, opt, optval; local 1131 error = sooptcopyin(sopt, &optval, sizeof optval, 1132 sizeof optval); 1151 if (optval) 1158 error = sooptcopyin(sopt, &optval, sizeof optval, 1159 sizeof optval); 1163 if (optval > 0 && optval < [all...] |
H A D | ip_output.c | 1943 int error, optval; local 1945 error = optval = 0; 1988 error = sooptcopyin(sopt, &optval, sizeof optval, 1989 sizeof optval); 1995 inp->inp_ip_tos = optval; 1999 inp->inp_ip_ttl = optval; 2002 if (optval) \ 2109 error = sooptcopyin(sopt, &optval, sizeof optval, 2843 int error, optval; local [all...] |
H A D | raw_ip.c | 424 int error, optval; local 435 optval = inp->inp_flags & INP_HDRINCL; 436 error = sooptcopyout(sopt, &optval, sizeof optval); 440 optval = inp->inp_flags & INP_STRIPHDR; 441 error = sooptcopyout(sopt, &optval, sizeof optval); 489 error = sooptcopyin(sopt, &optval, sizeof optval, 490 sizeof optval); [all...] |
H A D | udp_usrreq.c | 824 int error, optval; local 843 if ((error = sooptcopyin(sopt, &optval, sizeof (optval), 844 sizeof (optval))) != 0) 847 if (optval != 0) 862 optval = inp->inp_flags & INP_UDP_NOCKSUM; 870 error = sooptcopyout(sopt, &optval, sizeof (optval));
|
H A D | ip_mroute.c | 408 int error, optval; local 419 error = sooptcopyin(sopt, &optval, sizeof optval, 420 sizeof optval); 423 error = ip_mrouter_init(so, optval); 456 error = sooptcopyin(sopt, &optval, sizeof optval, 457 sizeof optval); 460 set_assert(optval);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | kpi_socket.h | 168 @param optval The option value. 169 @param optlen The length of optval, returns the actual length. 172 errno_t sock_getsockopt(socket_t so, int level, int optname, void *optval, 191 @param optval The option value. 192 @param optlen The length of optval. 195 errno_t sock_setsockopt(socket_t so, int level, int optname, const void *optval,
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | ip6_output.c | 1366 int error, optval; local 1371 level = error = optval = 0; 1431 error = sooptcopyin(sopt, &optval, 1432 sizeof optval, sizeof optval); 1438 if (optval < -1 || optval >= 256) 1442 in6p->in6p_hops = optval; 1446 in6p->inp_ip_ttl = optval; 1451 if (optval) \ 2051 int optval; local 2056 bcopy(mtod(m, u_int *), &optval, sizeof(optval)); local [all...] |
H A D | ip6_mroute.c | 270 int optval; local 283 error = sooptcopyin(sopt, &optval, sizeof(optval), 284 sizeof(optval)); 287 error = ip6_mrouter_init(so, optval, sopt->sopt_name); 317 error = sooptcopyin(sopt, &optval, sizeof(optval), 318 sizeof(optval)); 321 error = set_pim6(&optval);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | uipc_socket.c | 2952 int error, optval; local 3036 error = sooptcopyin(sopt, &optval, sizeof (optval), 3037 sizeof (optval)); 3040 if (optval) 3050 error = sooptcopyin(sopt, &optval, sizeof (optval), 3051 sizeof (optval)); 3059 if (optval < 1) { 3069 (u_long) optval) 3297 int error, optval; local [all...] |
H A D | kpi_socket.c | 414 void *optval, 420 if (sock == NULL || optval == NULL || optlen == NULL) return EINVAL; 424 sopt.sopt_val = CAST_USER_ADDR_T(optval); 446 const void *optval, 451 if (sock == NULL || optval == NULL) return EINVAL; 455 sopt.sopt_val = CAST_USER_ADDR_T(optval); 410 sock_getsockopt( socket_t sock, int level, int optname, void *optval, int *optlen) argument 442 sock_setsockopt( socket_t sock, int level, int optname, const void *optval, int optlen) argument
|