summaryrefslogtreecommitdiff
path: root/sys/netipx
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-01-15 07:07:18 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-01-15 07:07:18 +0000
commit1094deb2e2b8310d8f318d5dbd0ac5c2c1e8c481 (patch)
tree361a7f488cc0aedbac81eba04d6d76e5645cd55f /sys/netipx
parenta045a08192d89eeccd9c86c79e9895e917aefe2a (diff)
More statistics; from FreeBSD.
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx_input.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c
index f28e9cdaecf..e1923f60256 100644
--- a/sys/netipx/ipx_input.c
+++ b/sys/netipx/ipx_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipx_input.c,v 1.12 2000/01/15 07:02:13 fgsch Exp $ */
+/* $OpenBSD: ipx_input.c,v 1.13 2000/01/15 07:07:17 fgsch Exp $ */
/*-
*
@@ -325,16 +325,19 @@ struct mbuf *m;
int ok_back = 0;
if (ipxforwarding == 0) {
+ ipxstat.ipxs_cantforward++;
m_freem(m);
goto cleanup;
}
ipx->ipx_tc++;
if (ipx->ipx_tc > IPX_MAXHOPS) {
+ ipxstat.ipxs_cantforward++;
m_freem(m);
goto cleanup;
}
if ((ok_there = ipx_do_route(&ipx->ipx_dna,&ipx_droute)) == 0) {
+ ipxstat.ipxs_noroute++;
m_freem(m);
goto cleanup;
}
@@ -355,6 +358,7 @@ struct mbuf *m;
}
if ((ok_back = ipx_do_route(&ipx->ipx_sna,&ipx_sroute)) == 0) {
/* error = ENETUNREACH; He'll never get it! */
+ ipxstat.ipxs_noroute++;
m_freem(m);
goto cleanup;
}
@@ -364,6 +368,7 @@ struct mbuf *m;
(ifp!=ipx_sroute.ro_rt->rt_ifp)) {
flags |= IPX_ALLOWBROADCAST;
} else {
+ ipxstat.ipxs_noroute++;
m_freem(m);
goto cleanup;
}
@@ -387,6 +392,8 @@ struct mbuf *m;
error = ipx_outputfl(m, &ipx_droute, flags);
if (error == 0) {
+ ipxstat.ipxs_forward++;
+
if (ipxprintfs) {
printf("forward: ");
ipx_printhost(&ipx->ipx_sna);