Home | History | Annotate | Download | only in npf

Lines Matching defs:nat

440 npf_mk_singlenat(npf_t *npf, const nvlist_t *nat, nvlist_t *resp,
448 * NAT rules are standard rules, plus the translation policy.
451 error = npf_mk_singlerule(npf, nat, resp, NULL, &rl);
458 /* If this rule is named, then it is a group with NAT policies. */
459 if (dnvlist_get_string(nat, "name", NULL)) {
464 if (nvlist_exists_number(nat, "nat-table-id")) {
465 unsigned tid = nvlist_get_number(nat, "nat-table-id");
474 /* Allocate a new NAT policy and assign it to the rule. */
475 np = npf_natpolicy_create(npf, nat, ntset);
498 * NAT policies must be an array, but enforce a limit.
500 if (nvlist_exists_nvlist_array(req, "nat")) {
501 nat_rules = nvlist_get_nvlist_array(req, "nat", &nitems);
512 const nvlist_t *nat = nat_rules[i];
515 error = npf_mk_singlenat(npf, nat, resp, ntset,
648 error = npf_ruleset_export(npf, nc->nat_ruleset, "nat", resp);
716 natset = dnvlist_get_bool(req, "nat-ruleset", false);