Lines Matching refs:u_int8_t

43 static int ip6optlen(u_int8_t *opt, u_int8_t *lim);
107 inet6_option_append(struct cmsghdr *cmsg, const u_int8_t *typep, int multx, in inet6_option_append()
175 u_int8_t *
179 u_int8_t *bp = (u_char *)cmsg + cmsg->cmsg_len; in inet6_option_alloc()
180 u_int8_t *retval; in inet6_option_alloc()
238 inet6_option_next(const struct cmsghdr *cmsg, u_int8_t **tptrp) in inet6_option_next()
242 u_int8_t *lim; in inet6_option_next()
262 lim = (u_int8_t *)ip6e + hdrlen; in inet6_option_next()
264 *tptrp = (u_int8_t *)(ip6e + 1); in inet6_option_next()
294 inet6_option_find(const struct cmsghdr *cmsg, u_int8_t **tptrp, int type) in inet6_option_find()
298 u_int8_t *optp, *lim; in inet6_option_find()
318 lim = (u_int8_t *)ip6e + hdrlen; in inet6_option_find()
320 *tptrp = (u_int8_t *)(ip6e + 1); in inet6_option_find()
347 ip6optlen(u_int8_t *opt, u_int8_t *lim) in ip6optlen()
402 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type, in inet6_opt_append()
403 socklen_t len, u_int8_t align, void **databufp) in inet6_opt_append()
442 u_int8_t *optp = (u_int8_t *)extbuf + offset; in inet6_opt_append()
472 u_int8_t *padp; in inet6_opt_finish()
478 padp = (u_int8_t *)extbuf + offset; in inet6_opt_finish()
495 memcpy((u_int8_t *)databuf + offset, val, vallen); in inet6_opt_set_val()
500 inet6_opt_next(void *extbuf, socklen_t extlen, int offset, u_int8_t *typep, in inet6_opt_next()
503 u_int8_t *optp, *lim; in inet6_opt_next()
509 lim = (u_int8_t *)extbuf + extlen; in inet6_opt_next()
517 optp = (u_int8_t *)((struct ip6_hbh *)extbuf + 1); in inet6_opt_next()
520 optp = (u_int8_t *)extbuf + offset; in inet6_opt_next()
539 return(optp + optlen - (u_int8_t *)extbuf); in inet6_opt_next()
549 inet6_opt_find(void *extbuf, socklen_t extlen, int offset, u_int8_t type, in inet6_opt_find()
552 u_int8_t *optp, *lim; in inet6_opt_find()
558 lim = (u_int8_t *)extbuf + extlen; in inet6_opt_find()
566 optp = (u_int8_t *)((struct ip6_hbh *)extbuf + 1); in inet6_opt_find()
569 optp = (u_int8_t *)extbuf + offset; in inet6_opt_find()
579 return(optp + optlen - (u_int8_t *)extbuf); in inet6_opt_find()
595 memcpy(val, (u_int8_t *)databuf + offset, vallen); in inet6_opt_get_val()