From 407c76c5df687ad755f1debf4fbc158d4bbcbfa6 Mon Sep 17 00:00:00 2001 From: David Kopf Date: Wed, 31 Aug 2011 11:52:55 -0400 Subject: [PATCH] output buffer unused at present, save some RAM --- examples/ipv6/rpl-border-router/httpd-simple.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/ipv6/rpl-border-router/httpd-simple.h b/examples/ipv6/rpl-border-router/httpd-simple.h index 5fda299e8..4a2efa30f 100644 --- a/examples/ipv6/rpl-border-router/httpd-simple.h +++ b/examples/ipv6/rpl-border-router/httpd-simple.h @@ -26,7 +26,6 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: httpd-simple.h,v 1.1 2010/05/09 12:52:05 nifi Exp $ */ /** @@ -43,8 +42,10 @@ #include "contiki-net.h" +/* The current internal border router webserver ignores the requested file name */ +/* and needs no per-connection output buffer, so save some RAM */ #ifndef WEBSERVER_CONF_CFS_PATHLEN -#define HTTPD_PATHLEN 80 +#define HTTPD_PATHLEN 2 #else /* WEBSERVER_CONF_CFS_CONNS */ #define HTTPD_PATHLEN WEBSERVER_CONF_CFS_PATHLEN #endif /* WEBSERVER_CONF_CFS_CONNS */ @@ -56,8 +57,8 @@ struct httpd_state { struct timer timer; struct psock sin, sout; struct pt outputpt; - char inputbuf[HTTPD_PATHLEN + 30]; - char outputbuf[UIP_TCP_MSS]; + char inputbuf[HTTPD_PATHLEN + 24]; +/*char outputbuf[UIP_TCP_MSS]; */ char filename[HTTPD_PATHLEN]; httpd_simple_script_t script; char state;