From 7482fd696231371e854c4237666aea6a982a82a2 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Tue, 27 Mar 2012 11:09:54 +0200 Subject: [PATCH] quick fix for enabling native-border router to run under windows - need to cleanup the arguments --- platform/native/contiki-main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platform/native/contiki-main.c b/platform/native/contiki-main.c index 7a0be95bf..a870670cb 100644 --- a/platform/native/contiki-main.c +++ b/platform/native/contiki-main.c @@ -172,6 +172,18 @@ main(int argc, char **argv) contiki_argc = argc; contiki_argv = argv; + /* native under windows is hardcoded to use the first one or two args */ + /* for wpcap configuration so this needs to be "removed" from */ + /* contiki_args (used by the native-border-router) */ +#ifdef __CYGWIN__ + contiki_argc--; + contiki_argv++; +#ifdef UIP_FALLBACK_INTERFACE + contiki_argc--; + contiki_argv++; +#endif +#endif + process_init(); process_start(&etimer_process, NULL); ctimer_init();