Lines Matching refs:flow
377 * rewritten given the combination of the NAT type and flow direction.
382 npf_nat_which(const unsigned type, const npf_flow_t flow)
391 KASSERT(flow == NPF_FLOW_FORW || flow == NPF_FLOW_BACK);
401 which = (type == NPF_NATOUT) ? flow : !flow;
584 npf_dnat_translate(npf_cache_t *npc, npf_nat_t *nt, npf_flow_t flow)
587 const unsigned which = npf_nat_which(np->n_type, flow);
594 if (flow == NPF_FLOW_FORW) {
608 npf_alg_exec(npc, nt, flow);
621 npf_snat_translate(npf_cache_t *npc, const npf_natpolicy_t *np, npf_flow_t flow)
623 const unsigned which = npf_nat_which(np->n_type, flow);
675 * => Determines the flow direction in the context of the NAT policy.
679 const unsigned di, npf_flow_t *flow)
699 *flow = (np->n_type == di) ? NPF_FLOW_FORW : NPF_FLOW_BACK;
721 npf_flow_t flow;
736 if (con && (nt = npf_nat_lookup(npc, con, di, &flow)) != NULL) {
750 flow = NPF_FLOW_FORW;
757 error = npf_snat_translate(npc, np, flow);
808 error = npf_dnat_translate(npc, nt, flow);