Lines Matching defs:extbuf
387 inet6_opt_init(void *extbuf, socklen_t extlen)
389 struct ip6_ext *ext = (struct ip6_ext *)extbuf;
403 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type, socklen_t len, u_int8_t align, void **databufp)
442 if (extbuf) {
443 u_int8_t *optp = (u_int8_t *)extbuf + offset;
468 inet6_opt_finish(void *extbuf, socklen_t extlen, int offset)
472 if (extbuf) {
479 padp = (u_int8_t *)extbuf + offset;
500 inet6_opt_next(void *extbuf, socklen_t extlen, int offset, u_int8_t *typep, socklen_t *lenp, void **databufp)
508 lim = (u_int8_t *)extbuf + extlen;
516 optp = (u_int8_t *)((struct ip6_hbh *)extbuf + 1);
519 optp = (u_int8_t *)extbuf + offset;
538 return(optp + optlen - (u_int8_t *)extbuf);
548 inet6_opt_find(void *extbuf, socklen_t extlen, int offset, u_int8_t type, socklen_t *lenp, void **databufp)
556 lim = (u_int8_t *)extbuf + extlen;
564 optp = (u_int8_t *)((struct ip6_hbh *)extbuf + 1);
567 optp = (u_int8_t *)extbuf + offset;
577 return(optp + optlen - (u_int8_t *)extbuf);