Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.c
Show First 20 Lines • Show All 480 Lines • ▼ Show 20 Lines | print_pool(struct pfctl_pool *pool, u_int16_t p1, u_int16_t p2, | ||||
case PF_POOL_ROUNDROBIN: | case PF_POOL_ROUNDROBIN: | ||||
printf(" round-robin"); | printf(" round-robin"); | ||||
break; | break; | ||||
} | } | ||||
if (pool->opts & PF_POOL_STICKYADDR) | if (pool->opts & PF_POOL_STICKYADDR) | ||||
printf(" sticky-address"); | printf(" sticky-address"); | ||||
if (id == PF_NAT && p1 == 0 && p2 == 0) | if (id == PF_NAT && p1 == 0 && p2 == 0) | ||||
printf(" static-port"); | printf(" static-port"); | ||||
if (pool->mape.offset > 0) | |||||
printf(" map-e-portset %u/%u/%u", | |||||
pool->mape.offset, pool->mape.psidlen, pool->mape.psid); | |||||
} | } | ||||
const char * const pf_reasons[PFRES_MAX+1] = PFRES_NAMES; | const char * const pf_reasons[PFRES_MAX+1] = PFRES_NAMES; | ||||
const char * const pf_lcounters[LCNT_MAX+1] = LCNT_NAMES; | const char * const pf_lcounters[LCNT_MAX+1] = LCNT_NAMES; | ||||
const char * const pf_fcounters[FCNT_MAX+1] = FCNT_NAMES; | const char * const pf_fcounters[FCNT_MAX+1] = FCNT_NAMES; | ||||
const char * const pf_scounters[FCNT_MAX+1] = FCNT_NAMES; | const char * const pf_scounters[FCNT_MAX+1] = FCNT_NAMES; | ||||
void | void | ||||
▲ Show 20 Lines • Show All 1,399 Lines • Show Last 20 Lines |