From 26d335968392e710b25f7d331943210d036b6318 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Sat, 4 May 2013 13:12:09 -0700 Subject: [PATCH 1/2] make native border router use ipv6 stack and not rime --- examples/ipv6/native-border-router/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipv6/native-border-router/Makefile b/examples/ipv6/native-border-router/Makefile index 687319367..b28c0dc73 100644 --- a/examples/ipv6/native-border-router/Makefile +++ b/examples/ipv6/native-border-router/Makefile @@ -6,7 +6,7 @@ CONTIKI=../../.. WITH_UIP6=1 UIP_CONF_IPV6=1 -CFLAGS+= -DUIP_CONF_IPV6_RPL +CFLAGS+= -DUIP_CONF_IPV6_RPL -DUIP_CONF_IPV6 -DWITH_UIP6 #linker optimizations SMALL=1 From a096ace73e7e4047c257c9c49ab8b8b9fcea2eba Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Sat, 4 May 2013 13:13:08 -0700 Subject: [PATCH 2/2] fixed bug causing lots of packet loss --- examples/ipv6/native-border-router/slip-dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipv6/native-border-router/slip-dev.c b/examples/ipv6/native-border-router/slip-dev.c index a38c6a0c3..8aabbe528 100644 --- a/examples/ipv6/native-border-router/slip-dev.c +++ b/examples/ipv6/native-border-router/slip-dev.c @@ -176,7 +176,7 @@ slip_packet_input(unsigned char *data, int len) void serial_input(FILE *inslip) { - unsigned char inbuf[2048]; + static unsigned char inbuf[2048]; static int inbufptr = 0; int ret,i; unsigned char c;