Lines Matching defs:optval
1366 int error, optval;
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) \
1459 in6p->in6p_cksum = optval;
1479 if (optval)
1497 error = sooptcopyin(sopt, &optval,
1498 sizeof optval, sizeof optval);
1555 error = sooptcopyin(sopt, &optval,
1556 sizeof optval, sizeof optval);
1560 switch (optval) {
1652 optval = in6p->in6p_hops;
1656 optval = in6p->in6p_cksum;
1660 optval = OPTBIT(IN6P_FAITH);
1664 optval = OPTBIT(IN6P_IPV6_V6ONLY);
1672 optval = IPV6_PORTRANGE_HIGH;
1674 optval = IPV6_PORTRANGE_LOW;
1676 optval = 0;
1680 error = sooptcopyout(sopt, &optval,
1681 sizeof optval);
1695 optval = OPTBIT(IN6P_PKTINFO);
1698 optval = OPTBIT(IN6P_HOPLIMIT);
1703 optval = OPTBIT(IN6P_HOPOPTS);
1706 optval = OPTBIT(IN6P_RTHDR);
1711 optval = OPTBIT(IN6P_DSTOPTS|IN6P_RTHDRDSTOPTS);
1714 error = sooptcopyout(sopt, &optval,
1715 sizeof optval);
2051 int optval;
2056 bcopy(mtod(m, u_int *), &optval, sizeof(optval));
2057 if (optval < -1 || optval >= 256)
2059 else if (optval == -1) {
2063 im6o->im6o_multicast_hlim = optval;
2064 imo->imo_multicast_ttl = optval;