Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.c
Show First 20 Lines • Show All 688 Lines • ▼ Show 20 Lines | case PF_PASS: | ||||
printf(", filter rule %u", sn->rule.nr); | printf(", filter rule %u", sn->rule.nr); | ||||
break; | break; | ||||
} | } | ||||
printf("\n"); | printf("\n"); | ||||
} | } | ||||
} | } | ||||
void | void | ||||
print_rule(struct pf_rule *r, const char *anchor_call, int verbose, int numeric) | print_rule(struct pfctl_rule *r, const char *anchor_call, int verbose, int numeric) | ||||
{ | { | ||||
static const char *actiontypes[] = { "pass", "block", "scrub", | static const char *actiontypes[] = { "pass", "block", "scrub", | ||||
"no scrub", "nat", "no nat", "binat", "no binat", "rdr", "no rdr" }; | "no scrub", "nat", "no nat", "binat", "no binat", "rdr", "no rdr" }; | ||||
static const char *anchortypes[] = { "anchor", "anchor", "anchor", | static const char *anchortypes[] = { "anchor", "anchor", "anchor", | ||||
"anchor", "nat-anchor", "nat-anchor", "binat-anchor", | "anchor", "nat-anchor", "nat-anchor", "binat-anchor", | ||||
"binat-anchor", "rdr-anchor", "rdr-anchor" }; | "binat-anchor", "rdr-anchor", "rdr-anchor" }; | ||||
int i, opts; | int i, opts; | ||||
▲ Show 20 Lines • Show All 1,190 Lines • Show Last 20 Lines |