NPF_NATOUT
nt = npf_nat_create(NPF_NATOUT, NPF_NAT_PORTS | NPF_NAT_PORTMAP, NULL);
(type == NPF_NATOUT ? NPF_RULE_OUT : NPF_RULE_IN);
[NPF_NATOUT] = NPF_DST,
KASSERT(ntype == NPF_NATOUT || ntype == NPF_NATIN);
if (((np->n_type == NPF_NATIN) ^ (np->n_type == NPF_NATOUT)) == 0) {
KASSERT(type == NPF_NATIN || type == NPF_NATOUT);
which = (type == NPF_NATOUT) ? flow : !flow;
if (np->n_type == NPF_NATOUT) {
nt->nt_oport = (np->n_type == NPF_NATOUT) ?
nt->nt_oport = (np->n_type == NPF_NATOUT) ?
CTASSERT(NPF_NATIN == PFIL_IN && NPF_NATOUT == PFIL_OUT);
if ((type & NPF_NATOUT) != 0 && ap2->ap_netaddr == NULL) {
binat = (NPF_NATIN | NPF_NATOUT) == type;
if (type & NPF_NATOUT) {
if (type & NPF_NATOUT) {
if (type & NPF_NATOUT) {
nt2 = npfctl_build_nat(NPF_NATOUT, ifname,
: ARROWBOTH { $$ = NPF_NATIN | NPF_NATOUT; }
| ARROWRIGHT { $$ = NPF_NATOUT; }
case NPF_NATOUT:
#define NPF_BINAT (NPF_NATIN | NPF_NATOUT)
NPF_NATOUT, IFNAME_EXT, PFIL_OUT,
NPF_NATOUT, IFNAME_EXT, PFIL_OUT,
NPF_NATOUT, IFNAME_EXT, PFIL_IN,
NPF_NATOUT, IFNAME_EXT, PFIL_IN,
NPF_NATOUT, IFNAME_INT, PFIL_IN,
NPF_NATOUT, IFNAME_EXT, PFIL_IN,