summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2011-07-21 15:35:13 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2011-07-21 15:35:13 +0000
commitadd4f336fba733c524ee11a900e3055ec6a7f3f7 (patch)
tree8e158e5c6a4a8cb32bec67566f72703dde1f3557 /cpukit/libnetworking
parent2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-add4f336fba733c524ee11a900e3055ec6a7f3f7.tar.bz2
2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/rtems/rtems_showipstat.c: Print IP input queue drops.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/rtems/rtems_showipstat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_showipstat.c b/cpukit/libnetworking/rtems/rtems_showipstat.c
index 75eabca2c1..159a25c2a6 100644
--- a/cpukit/libnetworking/rtems/rtems_showipstat.c
+++ b/cpukit/libnetworking/rtems/rtems_showipstat.c
@@ -13,8 +13,12 @@
#include <sys/sysctl.h>
#include <sys/proc.h>
#include <sys/mbuf.h>
-#include <netinet/in_systm.h>
+#include <sys/socket.h>
+#include <net/if.h>
+#include <net/if_var.h>
#include <netinet/in.h>
+#include <netinet/in_systm.h>
+#include <netinet/in_var.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
@@ -59,5 +63,6 @@ rtems_bsdnet_show_ip_stats (void)
showipstat ("ip version != 4", ipstat.ips_badvers);
showipstat ("total raw ip packets generated", ipstat.ips_rawout);
showipstat ("ip length > max ip packet size", ipstat.ips_toolong);
+ showipstat ("ip input queue drops", ipintrq.ifq_drops);
printf ("\n");
}