Home
last modified time | relevance | path

Searched refs:naf (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/netpfil/pf/
H A Dpf_lb.c242 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 Dpf.c455 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 Dpf.h676 sa_family_t naf; member
H A Dpf_nl.c738 { .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 Dif_pflog.h55 sa_family_t naf; member
H A Dpfvar.h867 sa_family_t naf; member
904 sa_family_t naf; member
1639 sa_family_t naf; member
/freebsd/contrib/tcpdump/
H A Dpflog.h136 nd_uint8_t naf; member
/freebsd/contrib/libpcap/
H A Dpflog.h139 uint8_t naf; member
/freebsd/sbin/pfctl/
H A Dpfctl_parser.c668 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 Dpfctl.c2062 if (pfctl_add_pool(pf, &r->nat, r->naf ? r->naf : r->af, PF_NAT)) in pfctl_load_rule()
H A Dparse.y1085 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 Dlibpfctl.h259 sa_family_t naf; member
411 sa_family_t naf; member
H A Dlibpfctl.c1288 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 },