Lines Matching refs:naddr
2872 pf_poolmask(struct pf_addr *naddr, struct pf_addr *raddr,
2878 naddr->addr32[0] = (raddr->addr32[0] & rmask->addr32[0]) |
2883 naddr->addr32[0] = (raddr->addr32[0] & rmask->addr32[0]) |
2885 naddr->addr32[1] = (raddr->addr32[1] & rmask->addr32[1]) |
2887 naddr->addr32[2] = (raddr->addr32[2] & rmask->addr32[2]) |
2889 naddr->addr32[3] = (raddr->addr32[3] & rmask->addr32[3]) |
2986 struct pf_addr *naddr, struct pf_addr *init_addr, struct pf_src_node **sn)
3007 PF_ACPY(naddr, &(*sn)->raddr, af);
3012 pf_print_host(naddr, 0, af);
3054 PF_ACPY(naddr, raddr, af);
3057 PF_POOLMASK(naddr, raddr, rmask, saddr, af);
3090 PF_POOLMASK(naddr, raddr, rmask, &rpool->counter, af);
3091 PF_ACPY(init_addr, naddr, af);
3095 PF_POOLMASK(naddr, raddr, rmask, &rpool->counter, af);
3101 PF_POOLMASK(naddr, raddr, rmask,
3148 PF_ACPY(naddr, &rpool->counter, af);
3150 PF_ACPY(init_addr, naddr, af);
3155 PF_ACPY(&(*sn)->raddr, naddr, af);
3160 pf_print_host(naddr, 0, af);
3170 union pf_state_xport *dxport, struct pf_addr *naddr,
3183 if (pf_map_addr(af, r, saddr, naddr, &init_addr, sn))
3254 PF_ACPY(&key.gwy.addr, naddr, key.af);
3321 if (pf_map_addr(af, r, saddr, naddr, &init_addr, sn))
3330 } while (!PF_AEQ(&init_addr, naddr, af));
3436 union pf_state_xport *dxport, struct pf_addr *naddr,
3466 dxport, naddr, nxport, sn)) {
3486 PF_POOLMASK(naddr,
3499 PF_POOLMASK(naddr,
3509 PF_POOLMASK(naddr,
3523 PF_POOLMASK(naddr,
3536 PF_POOLMASK(naddr,
3546 PF_POOLMASK(naddr,
3563 PF_POOLMASK(naddr,
3576 PF_POOLMASK(naddr,
3586 PF_POOLMASK(naddr,
3597 naddr, NULL, sn))
3601 PF_POOLMASK(naddr, naddr,
4106 saddr, &sxport, daddr, &dxport, &pd->naddr, &nxport)) !=
4113 &pd->naddr, nxport.port, 0, af);
4120 &pd->hdr.udp->uh_sum, &pd->naddr,
4129 pd->naddr.v4.s_addr, 0);
4142 &pd->naddr, 0);
4152 pd->ip_sum, pd->naddr.v4.s_addr, 0);
4157 PF_ACPY(saddr, &pd->naddr, AF_INET6);
4169 pd->ip_sum, pd->naddr.v4.s_addr, 0);
4174 PF_ACPY(saddr, &pd->naddr, AF_INET6);
4184 pd->ip_sum, pd->naddr.v4.s_addr, 0);
4189 PF_ACPY(saddr, &pd->naddr, af);
4204 saddr, &sxport, daddr, &dxport, &pd->naddr, &nxport)) !=
4211 &pd->naddr, nxport.port, 0, af);
4218 &pd->hdr.udp->uh_sum, &pd->naddr,
4227 pd->naddr.v4.s_addr, 0);
4235 &pd->naddr, 0);
4248 pd->ip_sum, pd->naddr.v4.s_addr, 0);
4253 PF_ACPY(daddr, &pd->naddr, AF_INET6);
4264 pd->ip_sum, pd->naddr.v4.s_addr, 0);
4269 PF_ACPY(daddr, &pd->naddr, AF_INET6);
4279 pd->ip_sum, pd->naddr.v4.s_addr, 0);
4284 PF_ACPY(daddr, &pd->naddr, af);
4891 PF_ACPY(&nsn->raddr, &pd->naddr, af);
7621 struct pf_addr naddr;
7682 &naddr, NULL, &sn);
7683 if (!PF_AZERO(&naddr, AF_INET))
7684 dst->sin_addr.s_addr = naddr.v4.s_addr;
7836 struct pf_addr naddr;
7891 &naddr, NULL, &sn);
7892 if (!PF_AZERO(&naddr, AF_INET6))
7894 &naddr, AF_INET6);
8514 &pd.baddr : &pd.naddr;
8517 &pd.naddr : &pd.baddr;
9108 &pd.baddr : &pd.naddr;
9111 &pd.naddr : &pd.baddr;