Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.c
| Show First 20 Lines • Show All 912 Lines • ▼ Show 20 Lines | print_rule(struct pfctl_rule *r, const char *anchor_call, int verbose, int numeric) | ||||
| if (r->log) { | if (r->log) { | ||||
| printf(" log"); | printf(" log"); | ||||
| if (r->log & ~PF_LOG || r->logif) { | if (r->log & ~PF_LOG || r->logif) { | ||||
| int count = 0; | int count = 0; | ||||
| printf(" ("); | printf(" ("); | ||||
| if (r->log & PF_LOG_ALL) | if (r->log & PF_LOG_ALL) | ||||
| printf("%sall", count++ ? ", " : ""); | printf("%sall", count++ ? ", " : ""); | ||||
| if (r->log & PF_LOG_MATCHES) | |||||
| printf("%smatches", count++ ? ", " : ""); | |||||
| if (r->log & PF_LOG_SOCKET_LOOKUP) | if (r->log & PF_LOG_SOCKET_LOOKUP) | ||||
| printf("%suser", count++ ? ", " : ""); | printf("%suser", count++ ? ", " : ""); | ||||
| if (r->logif) | if (r->logif) | ||||
| printf("%sto pflog%u", count++ ? ", " : "", | printf("%sto pflog%u", count++ ? ", " : "", | ||||
| r->logif); | r->logif); | ||||
| printf(")"); | printf(")"); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,154 Lines • Show Last 20 Lines | |||||