diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-13 05:30:12 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-13 05:30:12 +0000 |
commit | be850e93c8917f5795b6d691c09c3c6bdd27ba27 (patch) | |
tree | 565cce9161a5ea08ffe7430408c81e85265d4f8e | |
parent | 2c2417b770459418e01e3298602a6c36b9e848d5 (diff) |
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); |