diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1997-07-14 08:48:48 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1997-07-14 08:48:48 +0000 |
commit | c3a2298d51e059cd301992f6b91d3f3997af4f97 (patch) | |
tree | adb96418b6e9ecbf80d1e69c6ab9cbb935d25e67 /sys/netinet/ip_ah_new.c | |
parent | af2f31378b24787947acccc4300ac8f758a21a6a (diff) |
global byte counters.
Diffstat (limited to 'sys/netinet/ip_ah_new.c')
-rw-r--r-- | sys/netinet/ip_ah_new.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_ah_new.c b/sys/netinet/ip_ah_new.c index 34a7f723dc2..f9a76b03b92 100644 --- a/sys/netinet/ip_ah_new.c +++ b/sys/netinet/ip_ah_new.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ah_new.c,v 1.2 1997/07/12 14:57:01 provos Exp $ */ +/* $OpenBSD: ip_ah_new.c,v 1.3 1997/07/14 08:48:45 provos Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -587,6 +587,7 @@ ah_new_input(struct mbuf *m, struct tdb *tdb) /* Update the counters */ tdb->tdb_cur_packets++; tdb->tdb_cur_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2); + ahstat.ahs_ibytes += ntohs(ip->ip_len) - (ip->ip_hl << 2); return m; } @@ -889,6 +890,7 @@ ah_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, /* Update the counters */ tdb->tdb_cur_packets++; tdb->tdb_cur_bytes += ip->ip_len - (ip->ip_hl << 2) - AH_NEW_FLENGTH; + ahstat.ahs_obytes += ip->ip_len - (ip->ip_hl << 2) - AH_NEW_FLENGTH; return 0; } |