Lines Matching refs:limit
892 * need to include an encapsulation limit option in the outer
2618 * Limit option and the limit value is 0, then fall through
2974 * Insert an encapsulation limit destination option in the packet provided.
2979 uint8_t limit)
3003 newouter6->it6h_encaplim.iel_telopt.ip6ot_encap_limit = limit;
3025 uint8_t *limit, *configlimit;
3029 if (inner6 != NULL && iptun_find_encaplimit(mp, inner6, &limit)) {
3032 * encapsulation limit option. The limit variable points to
3034 * encapsulation limit option as specified in RFC 2473.
3036 * If limit is 0, then we've exceeded the limit and we need to
3039 * If limit is > 0, then we decrement it by 1 and make sure
3040 * that the encapsulation limit option in the outer header
3044 ASSERT(limit > mp->b_rptr && limit < mp->b_wptr);
3045 if (*limit == 0) {
3047 offset = limit - mp->b_rptr;
3055 * The outer header requires an encapsulation limit option.
3060 (*limit - 1))) == NULL)
3065 * There is an existing encapsulation limit option in
3066 * the outer header. If the inner encapsulation limit
3067 * is less than the configured encapsulation limit,
3068 * update the outer encapsulation limit to reflect
3074 if ((*limit - 1) < *configlimit)
3075 *configlimit = (*limit - 1);