fixed so that NBR compiles - added TCP support

This commit is contained in:
Joakim Eriksson 2017-10-06 16:07:10 +02:00
parent 1b2b043f24
commit adb2f9b010
3 changed files with 7 additions and 2 deletions

View File

@ -289,11 +289,11 @@ border_router_set_sensors(const char *data, int len)
}
/*---------------------------------------------------------------------------*/
static void
set_prefix_64(const uip_ipaddr_t *prefix_64)
set_prefix_64(uip_ipaddr_t *prefix_64)
{
memcpy(&prefix, prefix_64, 16);
prefix_set = 1;
rpl_dag_root_init(prefix_64, NULL);
rpl_dag_root_init(prefix_64, NULL);
rpl_dag_root_init_dag_immediately();
}
/*---------------------------------------------------------------------------*/

View File

@ -44,6 +44,10 @@
//#include "urlconv.h"
#if UIP_CONF_TCP == 0
#error HTTP server needs TCP enabled
#endif
#include "httpd-simple.h"
#define webserver_log_file(...)
#define webserver_log(...)

View File

@ -39,6 +39,7 @@
#define WEBSERVER_CONF_CFS_CONNS 2
#define SERIALIZE_ATTRIBUTES 1
#define UIP_CONF_TCP 1
#define CMD_CONF_OUTPUT border_router_cmd_output