Lines Matching refs:optval
2983 int error, optval;
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) == 0) {
3090 sb->sb_idealsize = (u_int32_t)optval;
3100 (optval > so->so_snd.sb_hiwat) ?
3101 so->so_snd.sb_hiwat : optval;
3105 (optval > so->so_rcv.sb_hiwat) ?
3106 so->so_rcv.sb_hiwat : optval;
3141 error = sooptcopyin(sopt, &optval, sizeof (optval),
3142 sizeof (optval));
3145 if (optval)
3153 error = sooptcopyin(sopt, &optval, sizeof (optval),
3154 sizeof (optval));
3157 if (optval)
3165 error = sooptcopyin(sopt, &optval, sizeof (optval),
3166 sizeof (optval));
3169 if (optval)
3180 error = sooptcopyin(sopt, &optval, sizeof (optval),
3181 sizeof (optval));
3184 if (optval)
3195 error = sooptcopyin(sopt, &optval, sizeof (optval),
3196 sizeof (optval));
3199 so->so_restrictions = (optval & (SO_RESTRICT_DENYIN |
3218 error = sooptcopyin(sopt, &optval, sizeof (optval),
3219 sizeof (optval));
3222 if (optval)
3230 error = sooptcopyin(sopt, &optval, sizeof (optval),
3231 sizeof (optval));
3234 if (optval)
3263 error = sooptcopyin(sopt, &optval, sizeof (optval),
3264 sizeof (optval));
3267 error = so_set_traffic_class(so, optval);
3274 error = sooptcopyin(sopt, &optval, sizeof (optval),
3275 sizeof (optval));
3278 if (optval == 0)
3303 error = sooptcopyin(sopt, &optval, sizeof (optval),
3304 sizeof (optval));
3307 if (optval == 0)
3314 error = sooptcopyin(sopt, &optval, sizeof (optval),
3315 sizeof (optval));
3326 if (optval == 0 &&
3331 if (optval)
3349 error = sooptcopyin(sopt, &optval, sizeof (optval),
3350 sizeof (optval));
3352 error = so_set_opportunistic(so, optval);
3361 error = sooptcopyin(sopt, &optval, sizeof (optval),
3362 sizeof (optval));
3364 error = so_set_recv_anyif(so, optval);
3452 int error, optval;
3508 optval = so->so_options & sopt->sopt_name;
3510 error = sooptcopyout(sopt, &optval, sizeof (optval));
3514 optval = so->so_type;
3531 optval = pkt_total;
3533 optval = so->so_rcv.sb_cc - so->so_rcv.sb_ctl;
3538 optval = so->so_snd.sb_cc;
3542 optval = so->so_error;
3547 optval = so->so_snd.sb_hiwat;
3551 optval = so->so_rcv.sb_hiwat;
3555 optval = so->so_snd.sb_lowat;
3559 optval = so->so_rcv.sb_lowat;
3571 optval = (so->so_flags & SOF_NOSIGPIPE);
3575 optval = (so->so_flags & SOF_NOADDRAVAIL);
3579 optval = (so->so_flags & SOF_REUSESHAREUID);
3584 optval = (so->so_flags & SOF_NOTIFYCONFLICT);
3588 optval = so->so_restrictions & (SO_RESTRICT_DENYIN |
3622 optval = (so->so_flags & SOF_UPCALLCLOSEWAIT);
3626 optval = (so->so_flags & SOF_BINDRANDOMPORT);
3640 optval = so->so_traffic_class;
3644 optval = (so->so_flags & SOF_RECV_TRAFFIC_CLASS);
3656 optval = (so->so_flags & SOF_PRIVILEGED_TRAFFIC_CLASS);
3660 optval = !(so->so_flags & SOF_NODEFUNCT);
3664 optval = (so->so_flags & SOF_DEFUNCT);
3668 optval = so_get_opportunistic(so);
3677 optval = so_get_recv_anyif(so);
4434 so_set_recv_anyif(struct socket *so, int optval)
4443 if (optval)