Lines Matching refs:tptrp
241 inet6_option_next(const struct cmsghdr *cmsg, u_int8_t **tptrp) in inet6_option_next() argument
266 if (*tptrp == NULL) in inet6_option_next()
267 *tptrp = (u_int8_t *)(ip6e + 1); in inet6_option_next()
269 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_next()
272 *tptrp = *tptrp + optlen; in inet6_option_next()
274 if (*tptrp >= lim) { /* there is no option */ in inet6_option_next()
275 *tptrp = NULL; in inet6_option_next()
282 if (ip6optlen(*tptrp, lim) == 0) in inet6_option_next()
297 inet6_option_find(const struct cmsghdr *cmsg, u_int8_t **tptrp, int type) in inet6_option_find() argument
322 if (*tptrp == NULL) in inet6_option_find()
323 *tptrp = (u_int8_t *)(ip6e + 1); in inet6_option_find()
325 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_find()
328 *tptrp = *tptrp + optlen; in inet6_option_find()
330 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find()
332 *tptrp = optp; in inet6_option_find()
340 *tptrp = NULL; in inet6_option_find()