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_old.c | |
parent | af2f31378b24787947acccc4300ac8f758a21a6a (diff) |
global byte counters.
Diffstat (limited to 'sys/netinet/ip_ah_old.c')
-rw-r--r-- | sys/netinet/ip_ah_old.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_ah_old.c b/sys/netinet/ip_ah_old.c index 0cf653c62b1..08a443e081e 100644 --- a/sys/netinet/ip_ah_old.c +++ b/sys/netinet/ip_ah_old.c @@ -481,6 +481,7 @@ ah_old_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; } @@ -773,6 +774,7 @@ ah_old_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_OLD_FLENGTH - alen; + ahstat.ahs_obytes += ip->ip_len - (ip->ip_hl << 2) - AH_OLD_FLENGTH - alen; return 0; } |