diff options
-rw-r--r-- | sys/netinet/ip_esp.c | 4 | ||||
-rw-r--r-- | sys/netinet/ip_esp.h | 4 | ||||
-rw-r--r-- | sys/netinet/ip_esp3desmd5.c | 3 | ||||
-rw-r--r-- | sys/netinet/ip_espdes.c | 4 | ||||
-rw-r--r-- | sys/netinet/ip_espdesmd5.c | 3 |
5 files changed, 12 insertions, 6 deletions
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c index ac87a3f4ea8..34fff9782a4 100644 --- a/sys/netinet/ip_esp.c +++ b/sys/netinet/ip_esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.c,v 1.2 1997/02/24 14:06:39 niklas Exp $ */ +/* $OpenBSD: ip_esp.c,v 1.3 1997/02/26 20:53:09 deraadt Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -74,6 +74,8 @@ esp_input(register struct mbuf *m, int iphlen) u_long spi; struct tdb *tdbp; + espstat.esps_input++; + /* * Strip IP options, if any. */ diff --git a/sys/netinet/ip_esp.h b/sys/netinet/ip_esp.h index cf46afcdda4..02bb47e768f 100644 --- a/sys/netinet/ip_esp.h +++ b/sys/netinet/ip_esp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.h,v 1.3 1997/02/24 14:06:39 niklas Exp $ */ +/* $OpenBSD: ip_esp.h,v 1.4 1997/02/26 20:53:13 deraadt Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -81,6 +81,8 @@ struct espstat u_long esps_wrap; /* Replay counter wrapped around */ u_long esps_badauth; /* Only valid for transforms with auth */ u_long esps_replay; /* Possible packet replay detected */ + u_long esps_input; /* Input ESP packets */ + u_long esps_output; /* Output ESP packets */ }; struct espdes_xdata diff --git a/sys/netinet/ip_esp3desmd5.c b/sys/netinet/ip_esp3desmd5.c index d62cadee289..ea6f9c02007 100644 --- a/sys/netinet/ip_esp3desmd5.c +++ b/sys/netinet/ip_esp3desmd5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp3desmd5.c,v 1.2 1997/02/24 14:06:39 niklas Exp $ */ +/* $OpenBSD: ip_esp3desmd5.c,v 1.3 1997/02/26 20:53:14 deraadt Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -524,6 +524,7 @@ esp3desmd5_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, st u_char iv[ESP3DESMD5_IVS], blk[8], auth[ESP3DESMD5_ALEN]; MD5_CTX ctx; + espstat.esps_output++; m = m_pullup(m, sizeof (struct ip)); /* Get IP header in one mbuf */ if (m == NULL) return ENOBUFS; diff --git a/sys/netinet/ip_espdes.c b/sys/netinet/ip_espdes.c index 66f77f04f09..e46ed171c91 100644 --- a/sys/netinet/ip_espdes.c +++ b/sys/netinet/ip_espdes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_espdes.c,v 1.2 1997/02/24 14:06:40 niklas Exp $ */ +/* $OpenBSD: ip_espdes.c,v 1.3 1997/02/26 20:53:16 deraadt Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -307,7 +307,7 @@ espdes_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, struct u_char *pad, *idat, *odat; u_char iv[8], blk[8]; - + espstat.esps_output++; m = m_pullup(m, sizeof (struct ip)); if (m == NULL) return ENOBUFS; diff --git a/sys/netinet/ip_espdesmd5.c b/sys/netinet/ip_espdesmd5.c index 77412949efa..24e37899450 100644 --- a/sys/netinet/ip_espdesmd5.c +++ b/sys/netinet/ip_espdesmd5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_espdesmd5.c,v 1.2 1997/02/24 14:06:40 niklas Exp $ */ +/* $OpenBSD: ip_espdesmd5.c,v 1.3 1997/02/26 20:53:18 deraadt Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -504,6 +504,7 @@ espdesmd5_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb, str u_char iv[ESPDESMD5_IVS], blk[8], auth[ESPDESMD5_ALEN]; MD5_CTX ctx; + espstat.esps_output++; m = m_pullup(m, sizeof (struct ip)); /* Get IP header in one mbuf */ if (m == NULL) return ENOBUFS; |