Lines Matching defs:pi
326 struct nd_opt_prefix_info *pi = NULL;
335 pi = (struct nd_opt_prefix_info *)pt;
337 if (pi->nd_opt_pi_len != 4) {
341 "ignored\n", pi->nd_opt_pi_len));
345 if (128 < pi->nd_opt_pi_prefix_len) {
349 "ignored\n", pi->nd_opt_pi_prefix_len));
353 if (IN6_IS_ADDR_MULTICAST(&pi->nd_opt_pi_prefix)
354 || IN6_IS_ADDR_LINKLOCAL(&pi->nd_opt_pi_prefix)) {
358 ip6_sprintf(&pi->nd_opt_pi_prefix)));
363 if ((pi->nd_opt_pi_prefix.s6_addr8[0] & 0xe0) == 0x20
364 && pi->nd_opt_pi_prefix_len != 64) {
368 pi->nd_opt_pi_prefix_len,
369 ip6_sprintf(&pi->nd_opt_pi_prefix)));
376 pr.ndpr_prefix.sin6_addr = pi->nd_opt_pi_prefix;
379 pr.ndpr_raf_onlink = (pi->nd_opt_pi_flags_reserved &
381 pr.ndpr_raf_auto = (pi->nd_opt_pi_flags_reserved &
383 pr.ndpr_plen = pi->nd_opt_pi_prefix_len;
384 pr.ndpr_vltime = ntohl(pi->nd_opt_pi_valid_time);
386 ntohl(pi->nd_opt_pi_preferred_time);