-/* $OpenBSD: ip_ah.c,v 1.2 1997/02/24 14:06:36 niklas Exp $ */
+/* $OpenBSD: ip_ah.c,v 1.3 1997/02/26 03:01:02 angelos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
struct ifqueue *ifq = NULL;
int s;
+ ahstat.ahs_input++;
+
/*
* Strip IP options, if any.
*/
-/* $OpenBSD: ip_ahhmacmd5.c,v 1.4 1997/02/24 14:06:37 niklas Exp $ */
+/* $OpenBSD: ip_ahhmacmd5.c,v 1.5 1997/02/26 03:01:03 angelos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
MD5_CTX ctx;
int ilen, ohlen;
-
+ ahstat.ahs_output++;
m = m_pullup(m, sizeof (struct ip));
if (m == NULL)
return ENOBUFS;
-/* $OpenBSD: ip_ahhmacsha1.c,v 1.4 1997/02/24 14:06:38 niklas Exp $ */
+/* $OpenBSD: ip_ahhmacsha1.c,v 1.5 1997/02/26 03:01:03 angelos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
SHA1_CTX ctx;
int ilen, ohlen;
-
+ ahstat.ahs_output++;
m = m_pullup(m, sizeof (struct ip));
if (m == NULL)
return ENOBUFS;
-/* $OpenBSD: ip_ahmd5.c,v 1.2 1997/02/24 14:06:38 niklas Exp $ */
+/* $OpenBSD: ip_ahmd5.c,v 1.3 1997/02/26 03:01:04 angelos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
int ilen, ohlen;
-
+ ahstat.ahs_output++;
m = m_pullup(m, sizeof (struct ip));
if (m == NULL)
return ENOBUFS;
-/* $OpenBSD: ip_ip4.c,v 1.4 1997/02/24 14:06:41 niklas Exp $ */
+/* $OpenBSD: ip_ip4.c,v 1.5 1997/02/26 03:01:04 angelos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
* Strip IP options, if any.
*/
+ ip4stat.ip4s_ipackets++;
if (iphlen > sizeof (struct ip))
{
ip_stripoptions(m, (struct mbuf *)0);
struct ip4_xdata *xd;
ushort ilen;
+ ip4stat.ip4s_opackets++;
ipi = mtod(m, struct ip *);
ilen = ntohs(ipi->ip_len);
-/* $OpenBSD: ip_ip4.h,v 1.3 1997/02/24 14:06:41 niklas Exp $ */
+/* $OpenBSD: ip_ip4.h,v 1.4 1997/02/26 03:01:05 angelos Exp $ */
/*
* The author of this code is John Ioannidis, ji@tla.org,
struct ip4stat
{
u_long ip4s_ipackets; /* total input packets */
+ u_long ip4s_opackets; /* total output packets */
u_long ip4s_hdrops; /* packet shorter than header shows */
u_long ip4s_badlen;
u_long ip4s_notip4;