diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-07-21 15:35:13 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-07-21 15:35:13 +0000 |
commit | add4f336fba733c524ee11a900e3055ec6a7f3f7 (patch) | |
tree | 8e158e5c6a4a8cb32bec67566f72703dde1f3557 /cpukit | |
parent | 2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-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')
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_showipstat.c | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 3105d423ff..9ab22dc315 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * libnetworking/rtems/rtems_showipstat.c: Print IP input queue drops. + 2011-07-21 Joel Sherrill <joel.sherrill@oarcorp.com> * libfs/src/dosfs/fat_file.c, libmisc/monitor/monitor.h, 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"); } |