Lines Matching refs:naf

455 	if (st->rule->rt == PF_REPLYTO || (pd->af != pd->naf))  in BOUND_IFACE()
617 nk->port[pd->sidx], 0, pd->af, pd->naf); in pf_packet_rework_nat()
621 nk->port[pd->didx], 0, pd->af, pd->naf); in pf_packet_rework_nat()
631 nk->port[pd->sidx], 1, pd->af, pd->naf); in pf_packet_rework_nat()
635 nk->port[pd->didx], 1, pd->af, pd->naf); in pf_packet_rework_nat()
646 nk->port[pd->sidx], 1, pd->af, pd->naf); in pf_packet_rework_nat()
651 nk->port[pd->didx], 1, pd->af, pd->naf); in pf_packet_rework_nat()
1696 if (pd->af != pd->naf) { in pf_state_key_setup()
1700 (*nk)->af = pd->naf; in pf_state_key_setup()
1709 PF_ACPY(&(*nk)->addr[pd->didx], &pd->nsaddr, pd->naf); in pf_state_key_setup()
1710 PF_ACPY(&(*nk)->addr[pd->sidx], &pd->ndaddr, pd->naf); in pf_state_key_setup()
3199 sa_family_t af, sa_family_t naf) in pf_change_ap() argument
3205 if (af == naf) in pf_change_ap()
3216 switch (naf) { in pf_change_ap()
3252 switch (naf) { in pf_change_ap()
3447 hlen = pd->naf == AF_INET ? sizeof(*ip4) : sizeof(*ip6); in pf_translate_af()
3457 switch (pd->naf) { in pf_translate_af()
3518 icmp->icmp6_cksum = pd->naf == AF_INET ? in pf_translate_af()
3531 sa_family_t af, sa_family_t naf) in pf_change_icmp_af() argument
3539 if (af == naf || (af != AF_INET && af != AF_INET6) || in pf_change_icmp_af()
3540 (naf != AF_INET && naf != AF_INET6)) in pf_change_icmp_af()
3550 hlen = naf == AF_INET ? sizeof(*ip4) : sizeof(*ip6); in pf_change_icmp_af()
3563 switch (naf) { in pf_change_icmp_af()
5541 nk->port[pd->sidx], 0, pd->af, pd->naf); in pf_test_rule()
5551 nk->port[pd->didx], 0, pd->af, pd->naf); in pf_test_rule()
5567 nk->port[pd->sidx], 1, pd->af, pd->naf); in pf_test_rule()
5579 nk->port[pd->didx], 1, pd->af, pd->naf); in pf_test_rule()
5594 nk->port[pd->sidx], 1, pd->af, pd->naf); in pf_test_rule()
5604 nk->port[pd->didx], 1, pd->af, pd->naf); in pf_test_rule()
5705 PF_TEST_ATTRIB(PF_MISMATCHAW(&r->src.addr, &pd->nsaddr, pd->naf, in pf_test_rule()
5805 if (r->naf) in pf_test_rule()
5806 pd->naf = r->naf; in pf_test_rule()
5807 if (pd->af != pd->naf) { in pf_test_rule()
5845 if (r->naf) in pf_test_rule()
5846 pd->naf = r->naf; in pf_test_rule()
5847 if (pd->af != pd->naf) { in pf_test_rule()
5913 nat64 = pd->af != pd->naf; in pf_test_rule()
6263 int afto = pd->af != pd->naf; in pf_translate()
6271 saddr, sport, 0, pd->af, pd->naf); in pf_translate()
6276 daddr, dport, 0, pd->af, pd->naf); in pf_translate()
6284 saddr, sport, 1, pd->af, pd->naf); in pf_translate()
6289 daddr, dport, 1, pd->af, pd->naf); in pf_translate()
6298 saddr, sport, 1, pd->af, pd->naf); in pf_translate()
6303 daddr, dport, 1, pd->af, pd->naf); in pf_translate()
6987 pd->naf = nk->af; in pf_test_state_tcp()
7081 pd->naf = nk->af; in pf_test_state_udp()
7218 nk->port[sidx], 1, pd->af, pd->naf); in pf_test_state_sctp()
7225 nk->port[didx], 1, pd->af, pd->naf); in pf_test_state_sctp()
7231 pd->naf = nk->af; in pf_test_state_sctp()
7850 pd->naf = nk->af; in pf_test_state_icmp()
8082 pd->naf = nk->af; in pf_test_state_icmp()
8198 pd->naf = nk->af; in pf_test_state_icmp()
8327 pd->naf = nk->af; in pf_test_state_icmp()
8450 pd->naf = nk->af; in pf_test_state_icmp()
8567 pd->naf = nk->af; in pf_test_state_icmp()
8757 pd->naf = nk->af; in pf_test_state_other()
8944 if (ifp == NULL && (pd->af != pd->naf)) { in pf_route()
9204 if (ifp == NULL && (pd->af != pd->naf)) { in pf_route6()
9232 if (pd->af != pd->naf) { in pf_route6()
9529 switch (pd->naf) { in pf_pdesc_to_dnflow()
9638 switch (pd->naf) { in pf_dummynet_route()
9878 pd->af = pd->naf = af; in pf_setup_pdesc()
10655 if (pd.naf == AF_INET) in pf_test()
10659 if (pd.naf == AF_INET6) in pf_test()