Lines Matching refs:extbuf
31 inet6_opt_init (void *extbuf, socklen_t extlen) in inet6_opt_init() argument
33 if (extbuf != NULL) in inet6_opt_init()
39 struct ip6_hbh *extp = (struct ip6_hbh *) extbuf; in inet6_opt_init()
52 add_padding (uint8_t *extbuf, int offset, int npad) in add_padding() argument
55 extbuf[offset] = IP6OPT_PAD1; in add_padding()
58 struct ip6_opt *pad_opt = (struct ip6_opt *) (extbuf + offset); in add_padding()
79 inet6_opt_append (void *extbuf, socklen_t extlen, int offset, uint8_t type, in inet6_opt_append() argument
107 if (extbuf != NULL) in inet6_opt_append()
113 add_padding (extbuf, offset, npad); in inet6_opt_append()
118 struct ip6_opt *opt = (struct ip6_opt *) ((uint8_t *) extbuf + offset); in inet6_opt_append()
139 inet6_opt_finish (void *extbuf, socklen_t extlen, int offset) in inet6_opt_finish() argument
148 if (extbuf != NULL) in inet6_opt_finish()
154 add_padding (extbuf, offset, npad); in inet6_opt_finish()
186 inet6_opt_next (void *extbuf, socklen_t extlen, int offset, uint8_t *typep, in inet6_opt_next() argument
196 struct ip6_opt *opt = (struct ip6_opt *) ((uint8_t *) extbuf + offset); in inet6_opt_next()
228 inet6_opt_find (void *extbuf, socklen_t extlen, int offset, uint8_t type, in inet6_opt_find() argument
238 struct ip6_opt *opt = (struct ip6_opt *) ((uint8_t *) extbuf + offset); in inet6_opt_find()
247 *databufp = (uint8_t *) extbuf + offset; in inet6_opt_find()