/freebsd/sys/netpfil/pf/ |
H A D | pf_lb.c | 242 pf_map_addr_sn(pd->naf, r, &pd->nsaddr, naddr, NULL, &init_addr, in pf_get_sport() 305 key.af = pd->naf; in pf_get_sport() 417 } while (! PF_AEQ(&init_addr, naddr, pd->naf) ); in pf_get_sport() 1002 pd->naf == AF_INET ? "inet" : "inet6", in pf_get_transaddr_af() 1022 if (pd->proto == IPPROTO_ICMPV6 && pd->naf == AF_INET) { in pf_get_transaddr_af() 1038 } else if (pd->proto == IPPROTO_ICMP && pd->naf == AF_INET6) { in pf_get_transaddr_af() 1058 if (pf_map_addr_sn(pd->naf, r, &nsaddr, &naddr, NULL, NULL, in pf_get_transaddr_af() 1064 if (pd->naf == AF_INET) { in pf_get_transaddr_af() 1068 inet_nat46(pd->naf, &pd->ndaddr, &ndaddr, &naddr, in pf_get_transaddr_af() 1074 inet_nat64(pd->naf, &pd->ndaddr, &ndaddr, &naddr, in pf_get_transaddr_af() [all …]
|
H A D | pf.c | 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() [all …]
|
H A D | pf.h | 676 sa_family_t naf; member
|
H A D | pf_nl.c | 738 { .type = PF_RT_NAF, .off = _OUT(naf), .cb = nlattr_get_uint8 }, 954 nlattr_add_u8(nw, PF_RT_NAF, rule->naf); in pf_handle_getrule() 1772 nlattr_add_u8(nw, PF_SN_NAF, n->naf); in pf_handle_get_srcnodes()
|
/freebsd/sys/net/ |
H A D | if_pflog.h | 55 sa_family_t naf; member
|
H A D | pfvar.h | 867 sa_family_t naf; member 904 sa_family_t naf; member 1639 sa_family_t naf; member
|
/freebsd/contrib/tcpdump/ |
H A D | pflog.h | 136 nd_uint8_t naf; member
|
/freebsd/contrib/libpcap/ |
H A D | pflog.h | 139 uint8_t naf; member
|
/freebsd/sbin/pfctl/ |
H A D | pfctl_parser.c | 668 print_addr(&aw, sn->naf ? sn->naf : sn->af, opts & PF_OPT_VERBOSE2); in print_src_node() 1241 r->naf != r->af) { in print_rule() 1242 printf(" af-to %s from ", r->naf == AF_INET ? "inet" : "inet6"); in print_rule() 1244 r->naf ? r->naf : r->af, PF_NAT); in print_rule() 1248 r->rdr.proxy_port[1], r->naf ? r->naf : r->af, in print_rule()
|
H A D | pfctl.c | 2062 if (pfctl_add_pool(pf, &r->nat, r->naf ? r->naf : r->af, PF_NAT)) in pfctl_load_rule()
|
H A D | parse.y | 1085 r.naf = r.af; 2727 r.naf = r.af; 2831 r.naf = $9.nat.af; 5507 if (r->naf != r->af) { in filter_consistent()
|
/freebsd/lib/libpfctl/ |
H A D | libpfctl.h | 259 sa_family_t naf; member 411 sa_family_t naf; member
|
H A D | libpfctl.c | 1288 snl_add_msg_attr_u8(nw, PF_RT_NAF, r->naf); in snl_add_msg_attr_pf_rule() 1666 { .type = PF_RT_NAF, .off = _OUT(r.naf), .cb = snl_attr_get_uint8 }, 3032 { .type = PF_SN_NAF, .off = _OUT(naf), .cb = snl_attr_get_uint8 },
|