-/* $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,
u_long spi;
struct tdb *tdbp;
+ espstat.esps_input++;
+
/*
* Strip IP options, if any.
*/
-/* $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,
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
-/* $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,
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;
-/* $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,
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;
-/* $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,
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;