From 9cbfede2b6ca3fa070e812241b267d68da1ee797 Mon Sep 17 00:00:00 2001 From: Atis Elsts Date: Tue, 22 Apr 2014 14:40:04 +0200 Subject: [PATCH] Explicitly initialize queue buffer in the main startup routine only if uIP is used. The Rime stack already does this on its own, and there is no need to do it twice. --- platform/native/contiki-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/native/contiki-main.c b/platform/native/contiki-main.c index 63313f554..0202fef73 100644 --- a/platform/native/contiki-main.c +++ b/platform/native/contiki-main.c @@ -199,12 +199,12 @@ main(int argc, char **argv) set_rime_addr(); - queuebuf_init(); - netstack_init(); printf("MAC %s RDC %s NETWORK %s\n", NETSTACK_MAC.name, NETSTACK_RDC.name, NETSTACK_NETWORK.name); #if WITH_UIP6 + queuebuf_init(); + memcpy(&uip_lladdr.addr, serial_id, sizeof(uip_lladdr.addr)); process_start(&tcpip_process, NULL);