Lines Matching refs:nd_opt
280 struct nd_opt_hdr *nd_opt;
292 nd_opt = ndopts->nd_opts_search;
295 if ((caddr_t)&nd_opt->nd_opt_len >= (caddr_t)ndopts->nd_opts_last) {
300 olen = nd_opt->nd_opt_len << 3;
310 ndopts->nd_opts_search = (struct nd_opt_hdr *)((caddr_t)nd_opt + olen);
320 return nd_opt;
332 struct nd_opt_hdr *nd_opt;
343 nd_opt = nd6_option(ndopts);
344 if (!nd_opt && !ndopts->nd_opts_last) {
354 if (!nd_opt)
357 switch (nd_opt->nd_opt_type) {
362 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) {
365 nd_opt->nd_opt_type));
368 ndopts->nd_opt_array[nd_opt->nd_opt_type]
369 = nd_opt;
373 if (ndopts->nd_opt_array[nd_opt->nd_opt_type] == 0) {
374 ndopts->nd_opt_array[nd_opt->nd_opt_type]
375 = nd_opt;
378 (struct nd_opt_prefix_info *)nd_opt;
387 "option ignored\n", nd_opt->nd_opt_type));