diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1997-06-25 07:53:30 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1997-06-25 07:53:30 +0000 |
commit | 2c9ded294a4d953f480eee2306fa97f79e827527 (patch) | |
tree | 082b2f37de03d91c07920aaef2b13e620ab25793 /sys/netinet/ip_espdesmd5.c | |
parent | eb51828dafd060aca283723aefa09b27ede1e79b (diff) |
hard and soft limits for SPI's per absolute timer, relative since establish,
relative since first use timers, packet and byte counters. notify key mgmt
on soft limits. key mgmt can now specify limits. new encap messages:
EMT_RESERVESPI, EMT_ENABLESPI, EMT_DISABLESPI
Diffstat (limited to 'sys/netinet/ip_espdesmd5.c')
-rw-r--r-- | sys/netinet/ip_espdesmd5.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/ip_espdesmd5.c b/sys/netinet/ip_espdesmd5.c index 7ef8b91bc08..2700e34b888 100644 --- a/sys/netinet/ip_espdesmd5.c +++ b/sys/netinet/ip_espdesmd5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_espdesmd5.c,v 1.9 1997/06/24 20:57:29 provos Exp $ */ +/* $OpenBSD: ip_espdesmd5.c,v 1.10 1997/06/25 07:53:26 provos Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -493,9 +493,9 @@ espdesmd5_input(struct mbuf *m, struct tdb *tdb) ip->ip_sum = in_cksum(m, sizeof (struct ip)); /* Update the counters */ - tdb->tdb_packets++; - tdb->tdb_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2) + padsize + - 2 + ESPDESMD5_ALEN; + tdb->tdb_cur_packets++; + tdb->tdb_cur_bytes += ntohs(ip->ip_len) - (ip->ip_hl << 2) + padsize + + 2 + ESPDESMD5_ALEN; return m; } @@ -754,8 +754,8 @@ espdesmd5_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, str iphlen - sizeof(struct ip)); /* Update the counters */ - tdb->tdb_packets++; - tdb->tdb_bytes += rlen + padding; + tdb->tdb_cur_packets++; + tdb->tdb_cur_bytes += rlen + padding; *mp = m; return 0; |