Lines Matching refs:pr0
791 struct nd_prefix pr0, *pr;
828 bzero(&pr0, sizeof(pr0));
829 pr0.ndpr_ifp = ifp;
830 pr0.ndpr_plen = in6_mask2len(&ifra->ifra_prefixmask.sin6_addr,
832 if (pr0.ndpr_plen == 128)
834 pr0.ndpr_prefix = ifra->ifra_addr;
835 pr0.ndpr_mask = ifra->ifra_prefixmask.sin6_addr;
838 pr0.ndpr_prefix.sin6_addr.s6_addr32[i] &=
848 pr0.ndpr_raf_onlink = 1; /* should be configurable? */
849 pr0.ndpr_raf_auto =
851 pr0.ndpr_vltime = ifra->ifra_lifetime.ia6t_vltime;
852 pr0.ndpr_pltime = ifra->ifra_lifetime.ia6t_pltime;
855 if ((pr = nd6_prefix_lookup(&pr0)) == NULL) {
860 if ((error = nd6_prelist_add(&pr0, NULL, &pr)) != 0)
917 struct nd_prefix pr0, *pr;
928 bzero(&pr0, sizeof(pr0));
929 pr0.ndpr_ifp = ifp;
930 pr0.ndpr_plen = in6_mask2len(&ia->ia_prefixmask.sin6_addr,
932 if (pr0.ndpr_plen == 128)
934 pr0.ndpr_prefix = ia->ia_addr;
935 pr0.ndpr_mask = ia->ia_prefixmask.sin6_addr;
937 pr0.ndpr_prefix.sin6_addr.s6_addr32[i] &=
948 if ((pr = nd6_prefix_lookup(&pr0)) != NULL &&