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;