diff options
author | Kristof Provost <kp@FreeBSD.org> | 2022-09-24 12:47:17 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2022-10-31 17:14:09 +0000 |
commit | 444a77ca85c78d02c19622a83a2798d0c5c2117b (patch) | |
tree | 136547d6c163f44d3dc044f9e86ac87d58704e00 /sbin | |
parent | 728ca8506dff0f27e32a5994b68e9eea5c345e04 (diff) | |
download | src-444a77ca85c78d02c19622a83a2798d0c5c2117b.tar.gz src-444a77ca85c78d02c19622a83a2798d0c5c2117b.zip |
pf: expose syncookie active/inactive status
When syncookies are in adaptive mode they may be active or inactive.
Expose this status to users.
Suggested by: Guido van Rooij
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 260c754f7209..1ad895bede05 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -622,6 +622,8 @@ print_status(struct pfctl_status *s, struct pfctl_syncookies *cookies, int opts) assert(cookies->mode <= PFCTL_SYNCOOKIES_ADAPTIVE); printf(" %-25s %s\n", "mode", PFCTL_SYNCOOKIES_MODE_NAMES[cookies->mode]); + printf(" %-25s %s\n", "active", + s->syncookies_active ? "active" : "inactive"); } } |