Lines Matching defs:ndopts
260 union nd_opts *ndopts)
262 bzero(ndopts, sizeof(*ndopts));
263 ndopts->nd_opts_search = (struct nd_opt_hdr *)opt;
264 ndopts->nd_opts_last
268 ndopts->nd_opts_done = 1;
269 ndopts->nd_opts_search = NULL;
278 union nd_opts *ndopts)
283 if (!ndopts)
284 panic("ndopts == NULL in nd6_option\n");
285 if (!ndopts->nd_opts_last)
286 panic("uninitialized ndopts in nd6_option\n");
287 if (!ndopts->nd_opts_search)
289 if (ndopts->nd_opts_done)
292 nd_opt = ndopts->nd_opts_search;
295 if ((caddr_t)&nd_opt->nd_opt_len >= (caddr_t)ndopts->nd_opts_last) {
296 bzero(ndopts, sizeof(*ndopts));
306 bzero(ndopts, sizeof(*ndopts));
310 ndopts->nd_opts_search = (struct nd_opt_hdr *)((caddr_t)nd_opt + olen);
311 if (ndopts->nd_opts_search > ndopts->nd_opts_last) {
313 bzero(ndopts, sizeof(*ndopts));
315 } else if (ndopts->nd_opts_search == ndopts->nd_opts_last) {
317 ndopts->nd_opts_done = 1;
318 ndopts->nd_opts_search = NULL;
330 union nd_opts *ndopts)
335 if (!ndopts)
336 panic("ndopts == NULL in nd6_options\n");
337 if (!ndopts->nd_opts_last)
338 panic("uninitialized ndopts in nd6_options\n");
339 if (!ndopts->nd_opts_search)
343 nd_opt = nd6_option(ndopts);
344 if (!nd_opt && !ndopts->nd_opts_last) {
350 bzero(ndopts, sizeof(*ndopts));
362 if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) {
368 ndopts->nd_opt_array[nd_opt->nd_opt_type]
373 if (ndopts->nd_opt_array[nd_opt->nd_opt_type] == 0) {
374 ndopts->nd_opt_array[nd_opt->nd_opt_type]
377 ndopts->nd_opts_pi_end =
398 if (ndopts->nd_opts_done)