Lines Matching defs:pol
1020 struct addrsel_policyent *newpol, *pol;
1023 TAILQ_FOREACH(pol, &addrsel_policytab, ape_entry) {
1025 &pol->ape_policy.addr.sin6_addr) &&
1027 &pol->ape_policy.addrmask.sin6_addr)) {
1045 struct addrsel_policyent *pol;
1048 for (pol = TAILQ_FIRST(&addrsel_policytab); pol;
1049 pol = TAILQ_NEXT(pol, ape_entry)) {
1051 &pol->ape_policy.addr.sin6_addr) &&
1053 &pol->ape_policy.addrmask.sin6_addr)) {
1057 if (pol == NULL) {
1061 TAILQ_REMOVE(&addrsel_policytab, pol, ape_entry);
1069 struct addrsel_policyent *pol;
1072 TAILQ_FOREACH(pol, &addrsel_policytab, ape_entry) {
1073 if ((error = (*callback)(&pol->ape_policy, w)) != 0)
1081 dump_addrsel_policyent(struct in6_addrpolicy *pol, void *arg)
1086 if (w->w_where && (char *)w->w_where + sizeof(*pol) <= (char *)w->w_limit) {
1087 if ((error = copyout(pol, w->w_where, sizeof(*pol))) != 0)
1089 w->w_where = (char *)w->w_where + sizeof(*pol);
1091 w->w_total += sizeof(*pol);
1100 struct in6_addrpolicy *bestpol = NULL, *pol;
1108 pol = &pent->ape_policy;
1109 mp = (u_char *)&pol->addrmask.sin6_addr;
1112 p = (u_char *)&pol->addr.sin6_addr;
1130 bestpol = pol;