lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] [PATCH] Avoid warnings about ignored packed attributes


From: David Woodhouse
Subject: Re: [lwip-devel] [PATCH] Avoid warnings about ignored packed attributes
Date: Fri, 26 Sep 2008 19:13:34 -0600

On Tue, 2008-09-23 at 09:16 +0100, Kieran Mansley wrote:
> Thanks - these all look good.  I'll add to the list of things to get
> applied.

Looks like we need this, too...

On a separate topic, now that I've introduced myself appropriately, has
anyone written a SOCKS server which listens on the host and makes
ongoing connections through the lwip stack? We have the appropriate DNS
client support for that, don't we?

I'm writing a VPN client, but I don't want a normal VPN -- I don't want
to require root privs, and I don't want to set up 'standard' routing so
that any untrusted process on the box can connect to the private
network. I just want a SOCKS server which gives me selective access to
the VPN.

So although I'm currently just using the tun device and letting the host
route to my VPN, I plan to use lwip and SOCKS instead.

Index: ports/unix/proj/unixsim/apps/shell.c
===================================================================
RCS file: /sources/lwip/contrib/ports/unix/proj/unixsim/apps/shell.c,v
retrieving revision 1.16
diff -u -p -r1.16 shell.c
--- ports/unix/proj/unixsim/apps/shell.c        30 May 2008 12:26:31 -0000      
1.16
+++ ports/unix/proj/unixsim/apps/shell.c        27 Sep 2008 01:08:12 -0000
@@ -80,11 +80,10 @@ clos [connection #]: closes a TCP or UDP
 stat: prints out lwIP statistics.\n\
 quit: quits.\n";
 
-#define STAT_NUM (((5 + UDP_STATS) * 13) + (4) + (11 * 4) + (2 * 3))
+#define STAT_NUM (((5 + UDP_STATS) * 12) + (4) + (11 * 4) + (2 * 3))
 
 static char *stat_msgs[STAT_NUM] = {
   "Link level * transmitted ",
-  "             retransmitted ",
   "           * received ",
   "             forwarded ",
   "           * dropped ",
@@ -97,7 +96,6 @@ static char *stat_msgs[STAT_NUM] = {
   "           * misc errors ",
   "             cache hits ",  
   "IP_FRAG    * transmitted ",
-  "             retransmitted ",
   "           * received ",
   "           * forwarded ",
   "           * dropped ",
@@ -110,7 +108,6 @@ static char *stat_msgs[STAT_NUM] = {
   "           * misc errors ",
   "             cache hits ",
   "IP         * transmitted ",
-  "             retransmitted ",
   "           * received ",
   "           * forwarded ",
   "           * dropped ",
@@ -123,7 +120,6 @@ static char *stat_msgs[STAT_NUM] = {
   "           * misc errors ",
   "             cache hits ",
   "ICMP       * transmitted ",
-  "             retransmitted ",
   "           * received ",
   "             forwarded ",
   "           * dropped ",
@@ -137,7 +133,6 @@ static char *stat_msgs[STAT_NUM] = {
   "             cache hits ",  
 #if UDP_STATS
   "UDP        * transmitted ",
-  "             retransmitted ",
   "           * received ",
   "             forwarded ",
   "           * dropped ",
@@ -151,7 +146,6 @@ static char *stat_msgs[STAT_NUM] = {
   "             cache hits ",  
 #endif
   "TCP        * transmitted ",
-  "           * retransmitted ",
   "           * received ",
   "             forwarded ",
   "           * dropped ",
@@ -221,7 +215,6 @@ static char *stat_msgs[STAT_NUM] = {
 
 static char *stat_formats[STAT_NUM] = {
   U16_F, /* link xmit */
-  U16_F, /* link rexmit */
   U16_F, /* link recv */
   U16_F, /* link fw */ 
   U16_F, /* link drop */
@@ -235,7 +228,6 @@ static char *stat_formats[STAT_NUM] = {
   U16_F, /* link cachehit */
 
   U16_F, /* ip_frag xmit */
-  U16_F, /* ip_frag rexmit */
   U16_F, /* ip_frag recv */
   U16_F, /* ip_frag fw */ 
   U16_F, /* ip_frag drop */
@@ -249,7 +241,6 @@ static char *stat_formats[STAT_NUM] = {
   U16_F, /* ip_frag cachehit */
 
   U16_F, /* ip xmit */
-  U16_F, /* ip rexmit */
   U16_F, /* ip recv */
   U16_F, /* ip fw */ 
   U16_F, /* ip drop */
@@ -263,7 +254,6 @@ static char *stat_formats[STAT_NUM] = {
   U16_F, /* ip cachehit */
 
   U16_F, /* icmp xmit */
-  U16_F, /* icmp rexmit */
   U16_F, /* icmp recv */
   U16_F, /* icmp fw */ 
   U16_F, /* icmp drop */
@@ -278,7 +268,6 @@ static char *stat_formats[STAT_NUM] = {
 
 #if UDP_STATS
   U16_F, /* udp xmit */
-  U16_F, /* udp rexmit */
   U16_F, /* udp recv */
   U16_F, /* udp fw */ 
   U16_F, /* udp drop */
@@ -293,7 +282,6 @@ static char *stat_formats[STAT_NUM] = {
 #endif
 
   U16_F, /* tcp xmit */
-  U16_F, /* tcp exmit */
   U16_F, /* tcp recv */
   U16_F, /* tcp fw */ 
   U16_F, /* tcp drop */
@@ -378,7 +366,6 @@ static char *stat_formats[STAT_NUM] = {
 
 static void *stat_ptrs[STAT_NUM] = {
   &lwip_stats.link.xmit,
-  &lwip_stats.link.rexmit,
   &lwip_stats.link.recv,
   &lwip_stats.link.fw,
   &lwip_stats.link.drop,
@@ -392,7 +379,6 @@ static void *stat_ptrs[STAT_NUM] = {
   &lwip_stats.link.cachehit,
 
   &lwip_stats.ip_frag.xmit,
-  &lwip_stats.ip_frag.rexmit,
   &lwip_stats.ip_frag.recv,
   &lwip_stats.ip_frag.fw,
   &lwip_stats.ip_frag.drop,
@@ -406,7 +392,6 @@ static void *stat_ptrs[STAT_NUM] = {
   &lwip_stats.ip_frag.cachehit,
 
   &lwip_stats.ip.xmit,
-  &lwip_stats.ip.rexmit,
   &lwip_stats.ip.recv,
   &lwip_stats.ip.fw,
   &lwip_stats.ip.drop,
@@ -420,7 +405,6 @@ static void *stat_ptrs[STAT_NUM] = {
   &lwip_stats.ip.cachehit,
 
   &lwip_stats.icmp.xmit,
-  &lwip_stats.icmp.rexmit,
   &lwip_stats.icmp.recv,
   &lwip_stats.icmp.fw,
   &lwip_stats.icmp.drop,
@@ -435,7 +419,6 @@ static void *stat_ptrs[STAT_NUM] = {
 
 #if UDP_STATS
   &lwip_stats.udp.xmit,
-  &lwip_stats.udp.rexmit,
   &lwip_stats.udp.recv,
   &lwip_stats.udp.fw,
   &lwip_stats.udp.drop,
@@ -450,7 +433,6 @@ static void *stat_ptrs[STAT_NUM] = {
 #endif
 
   &lwip_stats.tcp.xmit,
-  &lwip_stats.tcp.rexmit,
   &lwip_stats.tcp.recv,
   &lwip_stats.tcp.fw,
   &lwip_stats.tcp.drop,

-- 
David Woodhouse                            Open Source Technology Centre
address@hidden                              Intel Corporation





reply via email to

[Prev in Thread] Current Thread [Next in Thread]