Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pf_print_state.c
Show First 20 Lines • Show All 333 Lines • ▼ Show 20 Lines | printf(", %ju:%ju pkts, %ju:%ju bytes", | ||||
s->packets[0], | s->packets[0], | ||||
s->packets[1], | s->packets[1], | ||||
s->bytes[0], | s->bytes[0], | ||||
s->bytes[1]); | s->bytes[1]); | ||||
if (s->anchor != -1) | if (s->anchor != -1) | ||||
printf(", anchor %u", s->anchor); | printf(", anchor %u", s->anchor); | ||||
if (s->rule != -1) | if (s->rule != -1) | ||||
printf(", rule %u", s->rule); | printf(", rule %u", s->rule); | ||||
if (s->state_flags & PFSTATE_ALLOWOPTS) | |||||
printf(", allow-opts"); | |||||
if (s->state_flags & PFSTATE_SLOPPY) | if (s->state_flags & PFSTATE_SLOPPY) | ||||
printf(", sloppy"); | printf(", sloppy"); | ||||
if (s->state_flags & PFSTATE_NOSYNC) | |||||
printf(", no-sync"); | |||||
if (s->state_flags & PFSTATE_ACK) | |||||
printf(", psync-ack"); | |||||
if (s->state_flags & PFSTATE_NODF) | |||||
printf(", no-df"); | |||||
if (s->state_flags & PFSTATE_SETTOS) | |||||
printf(", set-tos"); | |||||
if (s->state_flags & PFSTATE_RANDOMID) | |||||
printf(", random-id"); | |||||
if (s->state_flags & PFSTATE_SCRUB_TCP) | |||||
printf(", scrub-tcp"); | |||||
if (s->state_flags & PFSTATE_SETPRIO) | |||||
printf(", set-prio"); | |||||
if (s->sync_flags & PFSYNC_FLAG_SRCNODE) | if (s->sync_flags & PFSYNC_FLAG_SRCNODE) | ||||
printf(", source-track"); | printf(", source-track"); | ||||
if (s->sync_flags & PFSYNC_FLAG_NATSRCNODE) | if (s->sync_flags & PFSYNC_FLAG_NATSRCNODE) | ||||
printf(", sticky-address"); | printf(", sticky-address"); | ||||
printf("\n"); | printf("\n"); | ||||
} | } | ||||
if (opts & PF_OPT_VERBOSE2) { | if (opts & PF_OPT_VERBOSE2) { | ||||
u_int64_t id; | u_int64_t id; | ||||
Show All 29 Lines |