Lines Matching refs:nd_opt
223 struct nd_opt_hdr *nd_opt = (struct nd_opt_hdr *)opt; in ndisc_parse_options() local
225 if (!nd_opt || opt_len < 0 || !ndopts) in ndisc_parse_options()
232 l = nd_opt->nd_opt_len << 3; in ndisc_parse_options()
235 if (ndisc_ops_parse_options(dev, nd_opt, ndopts)) in ndisc_parse_options()
237 switch (nd_opt->nd_opt_type) { in ndisc_parse_options()
243 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) { in ndisc_parse_options()
246 __func__, nd_opt->nd_opt_type); in ndisc_parse_options()
248 ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt; in ndisc_parse_options()
252 ndopts->nd_opts_pi_end = nd_opt; in ndisc_parse_options()
253 if (!ndopts->nd_opt_array[nd_opt->nd_opt_type]) in ndisc_parse_options()
254 ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt; in ndisc_parse_options()
258 ndopts->nd_opts_ri_end = nd_opt; in ndisc_parse_options()
260 ndopts->nd_opts_ri = nd_opt; in ndisc_parse_options()
264 if (ndisc_is_useropt(dev, nd_opt)) { in ndisc_parse_options()
265 ndopts->nd_useropts_end = nd_opt; in ndisc_parse_options()
267 ndopts->nd_useropts = nd_opt; in ndisc_parse_options()
277 nd_opt->nd_opt_type, in ndisc_parse_options()
278 nd_opt->nd_opt_len); in ndisc_parse_options()
283 nd_opt = ((void *)nd_opt) + l; in ndisc_parse_options()