Lines Matching refs:tptrp
231 inet6_option_next(const struct cmsghdr *cmsg, u_int8_t **tptrp) in inet6_option_next() argument
256 if (*tptrp == NULL) in inet6_option_next()
257 *tptrp = (u_int8_t *)(ip6e + 1); in inet6_option_next()
259 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_next()
262 *tptrp = *tptrp + optlen; in inet6_option_next()
264 if (*tptrp >= lim) { /* there is no option */ in inet6_option_next()
265 *tptrp = NULL; in inet6_option_next()
272 if (ip6optlen(*tptrp, lim) == 0) in inet6_option_next()
287 inet6_option_find(const struct cmsghdr *cmsg, u_int8_t **tptrp, int type) in inet6_option_find() argument
312 if (*tptrp == NULL) in inet6_option_find()
313 *tptrp = (u_int8_t *)(ip6e + 1); in inet6_option_find()
315 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_find()
318 *tptrp = *tptrp + optlen; in inet6_option_find()
320 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find()
322 *tptrp = optp; in inet6_option_find()
330 *tptrp = NULL; in inet6_option_find()