Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.c
Show First 20 Lines • Show All 741 Lines • ▼ Show 20 Lines | if (r->dst.isset) { | ||||
printf(" to "); | printf(" to "); | ||||
print_eth_addr(&r->dst); | print_eth_addr(&r->dst); | ||||
} | } | ||||
if (r->qname[0]) | if (r->qname[0]) | ||||
printf(" queue %s", r->qname); | printf(" queue %s", r->qname); | ||||
if (r->tagname[0]) | if (r->tagname[0]) | ||||
printf(" tag %s", r->tagname); | printf(" tag %s", r->tagname); | ||||
if (r->dnpipe) | |||||
printf(" %s %d", | |||||
r->dnflags & PFRULE_DN_IS_PIPE ? "dnpipe" : "dnqueue", | |||||
r->dnpipe); | |||||
} | } | ||||
void | void | ||||
print_rule(struct pfctl_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", | ||||
▲ Show 20 Lines • Show All 1,188 Lines • Show Last 20 Lines |