Lines Matching defs:prefix_opt
328 const struct nd_opt_prefix_info *prefix_opt) {
336 assert(prefix_opt);
338 if (len < prefix_opt->nd_opt_pi_len)
341 if (!(prefix_opt->nd_opt_pi_flags_reserved & (ND_OPT_PI_FLAG_ONLINK | ND_OPT_PI_FLAG_AUTO)))
344 if (in_addr_is_link_local(AF_INET6, (const union in_addr_union *) &prefix_opt->nd_opt_pi_prefix) > 0)
347 lifetime_valid = be32toh(prefix_opt->nd_opt_pi_valid_time);
348 lifetime_preferred = be32toh(prefix_opt->nd_opt_pi_preferred_time);
353 r = ndisc_prefix_match(nd, &prefix_opt->nd_opt_pi_prefix,
354 prefix_opt->nd_opt_pi_prefix_len, &prefix);
366 prefix->len = prefix_opt->nd_opt_pi_prefix_len;
368 memcpy(&prefix->addr, &prefix_opt->nd_opt_pi_prefix,
379 if (prefix->len != prefix_opt->nd_opt_pi_prefix_len) {
382 prefixlen = MIN(prefix->len, prefix_opt->nd_opt_pi_prefix_len);
386 prefix_opt->nd_opt_pi_prefix_len,
404 if ((prefix_opt->nd_opt_pi_flags_reserved & ND_OPT_PI_FLAG_ONLINK) && nd->prefix_onlink_callback)
407 if ((prefix_opt->nd_opt_pi_flags_reserved & ND_OPT_PI_FLAG_AUTO) && nd->prefix_autonomous_callback)