Lines Matching refs:tptrp
227 inet6_option_next(const struct cmsghdr *cmsg, u_int8_t **tptrp) in inet6_option_next() argument
252 if (*tptrp == NULL) in inet6_option_next()
253 *tptrp = (u_int8_t *)(ip6e + 1); in inet6_option_next()
255 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_next()
258 *tptrp = *tptrp + optlen; in inet6_option_next()
260 if (*tptrp >= lim) { /* there is no option */ in inet6_option_next()
261 *tptrp = NULL; in inet6_option_next()
268 if (ip6optlen(*tptrp, lim) == 0) in inet6_option_next()
283 inet6_option_find(const struct cmsghdr *cmsg, u_int8_t **tptrp, int type) in inet6_option_find() argument
308 if (*tptrp == NULL) in inet6_option_find()
309 *tptrp = (u_int8_t *)(ip6e + 1); in inet6_option_find()
311 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_find()
314 *tptrp = *tptrp + optlen; in inet6_option_find()
316 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find()
318 *tptrp = optp; in inet6_option_find()
326 *tptrp = NULL; in inet6_option_find()