mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Made CFS web server pathname length configurable via WEBSERVER_CONF_CFS_PATHLEN and increased default pathname length from 20 to 80 chars in order to allow to actually make use of subdirs.
This commit is contained in:
parent
eae42d02d5
commit
f22b0dffb3
@ -28,7 +28,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the uIP TCP/IP stack.
|
* This file is part of the uIP TCP/IP stack.
|
||||||
*
|
*
|
||||||
* $Id: httpd-cfs.h,v 1.2 2007/04/23 23:08:44 oliverschmidt Exp $
|
* $Id: httpd-cfs.h,v 1.3 2010/04/11 20:10:12 oliverschmidt Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -37,13 +37,19 @@
|
|||||||
|
|
||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
|
|
||||||
|
#ifndef WEBSERVER_CONF_CFS_PATHLEN
|
||||||
|
#define HTTPD_PATHLEN 80
|
||||||
|
#else /* WEBSERVER_CONF_CFS_CONNS */
|
||||||
|
#define HTTPD_PATHLEN WEBSERVER_CONF_CFS_PATHLEN
|
||||||
|
#endif /* WEBSERVER_CONF_CFS_CONNS */
|
||||||
|
|
||||||
struct httpd_state {
|
struct httpd_state {
|
||||||
struct timer timer;
|
struct timer timer;
|
||||||
struct psock sin, sout;
|
struct psock sin, sout;
|
||||||
struct pt outputpt;
|
struct pt outputpt;
|
||||||
char inputbuf[50];
|
char inputbuf[HTTPD_PATHLEN + 30];
|
||||||
char outputbuf[UIP_TCP_MSS];
|
char outputbuf[UIP_TCP_MSS];
|
||||||
char filename[20];
|
char filename[HTTPD_PATHLEN];
|
||||||
char state;
|
char state;
|
||||||
int fd;
|
int fd;
|
||||||
int len;
|
int len;
|
||||||
|
Loading…
Reference in New Issue
Block a user