Lines Matching refs:opt
118 struct ip6_opt *opt = (struct ip6_opt *) ((uint8_t *) extbuf + offset); in inet6_opt_append() local
120 opt->ip6o_type = type; in inet6_opt_append()
121 opt->ip6o_len = len; in inet6_opt_append()
123 *databufp = opt + 1; in inet6_opt_append()
196 struct ip6_opt *opt = (struct ip6_opt *) ((uint8_t *) extbuf + offset); in inet6_opt_next() local
198 if (opt->ip6o_type == IP6OPT_PAD1) in inet6_opt_next()
201 else if (opt->ip6o_type == IP6OPT_PADN) in inet6_opt_next()
202 offset += sizeof (struct ip6_opt) + opt->ip6o_len; in inet6_opt_next()
206 offset += sizeof (struct ip6_opt) + opt->ip6o_len; in inet6_opt_next()
210 *typep = opt->ip6o_type; in inet6_opt_next()
211 *lenp = opt->ip6o_len; in inet6_opt_next()
212 *databufp = opt + 1; in inet6_opt_next()
238 struct ip6_opt *opt = (struct ip6_opt *) ((uint8_t *) extbuf + offset); in inet6_opt_find() local
240 if (opt->ip6o_type == IP6OPT_PAD1) in inet6_opt_find()
251 else if (opt->ip6o_type != type) in inet6_opt_find()
252 offset += sizeof (struct ip6_opt) + opt->ip6o_len; in inet6_opt_find()
256 offset += sizeof (struct ip6_opt) + opt->ip6o_len; in inet6_opt_find()
260 *lenp = opt->ip6o_len; in inet6_opt_find()
261 *databufp = opt + 1; in inet6_opt_find()