pfctl: Optionally show gateway information for states
When showing the states, in very verbose mode, also display the gateway (i.e. the target for route-to/reply-to). Submitted by: Steven Brown Reviewed by: donner MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D30051
This commit is contained in:
parent
f0c914baac
commit
cc948296e6
@ -354,6 +354,8 @@ print_state(struct pfsync_state *s, int opts)
|
||||
bcopy(&s->id, &id, sizeof(u_int64_t));
|
||||
printf(" id: %016jx creatorid: %08x",
|
||||
(uintmax_t )be64toh(id), ntohl(s->creatorid));
|
||||
printf(" gateway: ");
|
||||
print_host(&s->rt_addr, 0, s->af, opts);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user