Lines Matching refs:extbuf
391 inet6_opt_init(void *extbuf, socklen_t extlen) in inet6_opt_init() argument
393 struct ip6_ext *ext = (struct ip6_ext *)extbuf; in inet6_opt_init()
405 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type, in inet6_opt_append() argument
444 if (extbuf) { in inet6_opt_append()
445 u_int8_t *optp = (u_int8_t *)extbuf + offset; in inet6_opt_append()
470 inet6_opt_finish(void *extbuf, socklen_t extlen, int offset) in inet6_opt_finish() argument
474 if (extbuf) { in inet6_opt_finish()
481 padp = (u_int8_t *)extbuf + offset; in inet6_opt_finish()
503 inet6_opt_next(void *extbuf, socklen_t extlen, int offset, u_int8_t *typep, in inet6_opt_next() argument
512 lim = (u_int8_t *)extbuf + extlen; in inet6_opt_next()
520 optp = (u_int8_t *)((struct ip6_hbh *)extbuf + 1); in inet6_opt_next()
523 optp = (u_int8_t *)extbuf + offset; in inet6_opt_next()
542 return(optp + optlen - (u_int8_t *)extbuf); in inet6_opt_next()
552 inet6_opt_find(void *extbuf, socklen_t extlen, int offset, u_int8_t type, in inet6_opt_find() argument
561 lim = (u_int8_t *)extbuf + extlen; in inet6_opt_find()
569 optp = (u_int8_t *)((struct ip6_hbh *)extbuf + 1); in inet6_opt_find()
572 optp = (u_int8_t *)extbuf + offset; in inet6_opt_find()
582 return(optp + optlen - (u_int8_t *)extbuf); in inet6_opt_find()