Lines Matching refs:tptrp
278 inet6_option_next(const struct cmsghdr *cmsg, uint8_t **tptrp) in inet6_option_next() argument
285 _DIAGASSERT(tptrp != NULL); in inet6_option_next()
306 if (*tptrp == NULL) in inet6_option_next()
307 *tptrp = (uint8_t *)(void *)(ip6e + 1); in inet6_option_next()
309 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_next()
312 *tptrp = *tptrp + optlen; in inet6_option_next()
314 if (*tptrp >= lim) { /* there is no option */ in inet6_option_next()
315 *tptrp = NULL; in inet6_option_next()
322 if (ip6optlen(*tptrp, lim) == 0) in inet6_option_next()
337 inet6_option_find(const struct cmsghdr *cmsg, uint8_t **tptrp, int type) in inet6_option_find() argument
344 _DIAGASSERT(tptrp != NULL); in inet6_option_find()
365 if (*tptrp == NULL) in inet6_option_find()
366 *tptrp = (uint8_t *)(void *)(ip6e + 1); in inet6_option_find()
368 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_find()
371 *tptrp = *tptrp + optlen; in inet6_option_find()
373 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find()
375 *tptrp = optp; in inet6_option_find()
383 *tptrp = NULL; in inet6_option_find()