Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pf_print_state.c
| Show First 20 Lines • Show All 348 Lines • ▼ Show 20 Lines | if (opts & PF_OPT_VERBOSE) { | ||||
| printf("\n"); | printf("\n"); | ||||
| } | } | ||||
| if (opts & PF_OPT_VERBOSE2) { | if (opts & PF_OPT_VERBOSE2) { | ||||
| u_int64_t id; | u_int64_t id; | ||||
| bcopy(&s->id, &id, sizeof(u_int64_t)); | bcopy(&s->id, &id, sizeof(u_int64_t)); | ||||
| printf(" id: %016jx creatorid: %08x", | printf(" id: %016jx creatorid: %08x", | ||||
| (uintmax_t )be64toh(id), ntohl(s->creatorid)); | (uintmax_t )be64toh(id), ntohl(s->creatorid)); | ||||
| printf(" gateway: "); | |||||
| print_host(&s->rt_addr, 0, s->af, opts); | |||||
| printf("\n"); | printf("\n"); | ||||
| } | } | ||||
| } | } | ||||
| int | int | ||||
| unmask(struct pf_addr *m, sa_family_t af) | unmask(struct pf_addr *m, sa_family_t af) | ||||
| { | { | ||||
| int i = 31, j = 0, b = 0; | int i = 31, j = 0, b = 0; | ||||
| Show All 13 Lines | |||||