[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] [PATCH 1/2] lwip: stub out lwip_stats.pbuf references s
From: |
Roel Adriaans |
Subject: |
Re: [lwip-users] [PATCH 1/2] lwip: stub out lwip_stats.pbuf references so shell builds |
Date: |
Fri, 21 Sep 2007 21:29:34 +0200 |
User-agent: |
Thunderbird 1.5.0.13 (X11/20070824) |
This patch has misses one thing, STAT_NUM isn't decreased by 6 which
breaks the stat command.
Trying to add a new patch..
---
Index: shell.c
===================================================================
RCS file: /sources/lwip/contrib/ports/unix/proj/unixsim/apps/shell.c,v
retrieving revision 1.12
diff -u -r1.12 shell.c
--- shell.c 5 Sep 2007 16:48:13 -0000 1.12
+++ shell.c 21 Sep 2007 19:04:46 -0000
@@ -79,7 +79,7 @@
stat: prints out lwIP statistics.\n\
quit: quits.\n";
-#define STAT_NUM ((6 * 13) + (6) + (4) + (11 * 4) + (2 * 3))
+#define STAT_NUM ((6 * 13) + (4) + (11 * 4) + (2 * 3))
static char *stat_msgs[STAT_NUM] = {
"Link level * transmitted ",
@@ -160,12 +160,14 @@
" * option errors ",
" * misc errors ",
" * cache hits ",
+#if 0
"Pbufs * available ",
" * used ",
" * high water mark ",
" * errors ",
" pbuf_alloc() locked ",
" pbuf_refresh() locked ",
+#endif
"Memory * available ",
" * used ",
" * high water mark ",
@@ -318,12 +320,12 @@
MEM_SIZE_F, /* mem used */
MEM_SIZE_F, /* mem max */
MEM_SIZE_F, /* mem err */
-
+#if 0
MEM_SIZE_F, /* memp pbuf avail */
MEM_SIZE_F, /* memp pbuf used */
MEM_SIZE_F, /* memp pbuf max */
MEM_SIZE_F, /* memp pbuf err */
-
+#endif
MEM_SIZE_F, /* memp raw pcb avail */
MEM_SIZE_F, /* memp raw pcb used */
MEM_SIZE_F, /* memp raw pcb max */
@@ -467,14 +469,14 @@
&lwip_stats.tcp.opterr,
&lwip_stats.tcp.err,
&lwip_stats.tcp.cachehit,
-
+#if 0
&lwip_stats.pbuf.avail,
&lwip_stats.pbuf.used,
&lwip_stats.pbuf.max,
&lwip_stats.pbuf.err,
&lwip_stats.pbuf.alloc_locked,
&lwip_stats.pbuf.refresh_locked,
-
+#endif
&lwip_stats.mem.avail,
&lwip_stats.mem.used,
&lwip_stats.mem.max,