diff options
author | 2000-01-13 05:30:11 +0000 | |
---|---|---|
committer | 2000-01-13 05:30:11 +0000 | |
commit | 086e513f687d5aabde3e5390dad7e8927a5651bf (patch) | |
tree | 54fbccb0a237ef7f3fad4b8739479ce0ec0fcf2a | |
parent | Update to establish ingress flows as well. (diff) | |
download | wireguard-openbsd-086e513f687d5aabde3e5390dad7e8927a5651bf.tar.xz wireguard-openbsd-086e513f687d5aabde3e5390dad7e8927a5651bf.zip |
Print number of ingress flows in /kern/ipsec
-rw-r--r-- | sys/netinet/ip_ipsp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index 2abf7f2b289..c57f4b8cff8 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.74 2000/01/13 00:34:31 angelos Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.75 2000/01/13 05:30:11 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -1559,6 +1559,12 @@ ipsp_kern(int off, char **bufp, int len) l+= sprintf(buffer + l, "\tCurrently used by %d flows\n", i); + for (i = 0, flow = tdb->tdb_access; flow; flow = flow->flow_next) + i++; + + l+= sprintf(buffer + l, + "\t%d ingress flows specified\n", i); + l += sprintf(buffer + l, "\t%u flows have used this SA\n", tdb->tdb_cur_allocations); |