Lines Matching refs:extbuf
388 inet6_opt_init(void *extbuf, socklen_t extlen) in inet6_opt_init() argument
390 struct ip6_ext *ext = (struct ip6_ext *)extbuf; in inet6_opt_init()
402 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type, in inet6_opt_append() argument
441 if (extbuf) { in inet6_opt_append()
442 u_int8_t *optp = (u_int8_t *)extbuf + offset; in inet6_opt_append()
467 inet6_opt_finish(void *extbuf, socklen_t extlen, int offset) in inet6_opt_finish() argument
471 if (extbuf) { in inet6_opt_finish()
478 padp = (u_int8_t *)extbuf + offset; in inet6_opt_finish()
500 inet6_opt_next(void *extbuf, socklen_t extlen, int offset, u_int8_t *typep, in inet6_opt_next() argument
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() argument
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()