Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.c
Show First 20 Lines • Show All 406 Lines • ▼ Show 20 Lines | if (dst->port_op) | ||||
print_port(dst->port_op, dst->port[0], | print_port(dst->port_op, dst->port[0], | ||||
dst->port[1], | dst->port[1], | ||||
proto == IPPROTO_TCP ? "tcp" : "udp", | proto == IPPROTO_TCP ? "tcp" : "udp", | ||||
numeric); | numeric); | ||||
} | } | ||||
} | } | ||||
void | void | ||||
print_pool(struct pf_pool *pool, u_int16_t p1, u_int16_t p2, | print_pool(struct pfctl_pool *pool, u_int16_t p1, u_int16_t p2, | ||||
sa_family_t af, int id) | sa_family_t af, int id) | ||||
{ | { | ||||
struct pf_pooladdr *pooladdr; | struct pf_pooladdr *pooladdr; | ||||
if ((TAILQ_FIRST(&pool->list) != NULL) && | if ((TAILQ_FIRST(&pool->list) != NULL) && | ||||
TAILQ_NEXT(TAILQ_FIRST(&pool->list), entries) != NULL) | TAILQ_NEXT(TAILQ_FIRST(&pool->list), entries) != NULL) | ||||
printf("{ "); | printf("{ "); | ||||
TAILQ_FOREACH(pooladdr, &pool->list, entries){ | TAILQ_FOREACH(pooladdr, &pool->list, entries){ | ||||
▲ Show 20 Lines • Show All 1,472 Lines • Show Last 20 Lines |