Merge pull request #244 from darconeous/pull-requests/cpu-native-tapdev-ipv6-fix

native/net/tapdev: Fix for new `UIP_CONF_IPV6` handling.
This commit is contained in:
Robert Quattlebaum 2013-05-21 17:42:44 -07:00
commit 36fbbe48aa
4 changed files with 16 additions and 7 deletions

View File

@ -31,6 +31,8 @@
*/
#include "contiki-net.h"
#include "net/uip.h"
#include "net/uipopt.h"
#if UIP_CONF_IPV6
#include "tapdev6.h"

View File

@ -33,6 +33,11 @@
*
*/
#include "net/uip.h"
#include "net/uipopt.h"
#if !UIP_CONF_IPV6
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
@ -198,3 +203,5 @@ tapdev_exit(void)
{
}
/*---------------------------------------------------------------------------*/
#endif /* !UIP_CONF_IPV6 */

View File

@ -33,6 +33,10 @@
*
*/
#include "net/uip.h"
#include "net/uipopt.h"
#if UIP_CONF_IPV6
#include <fcntl.h>
#include <stdlib.h>
@ -413,3 +417,5 @@ tapdev_exit(void)
close(fd);
}
/*---------------------------------------------------------------------------*/
#endif /* UIP_CONF_IPV6 */

View File

@ -14,13 +14,7 @@ CONTIKI_TARGET_SOURCEFILES = contiki-main.c clock.c leds.c leds-arch.c cfs-posix
ifeq ($(HOST_OS),Windows)
CONTIKI_TARGET_SOURCEFILES += wpcap-drv.c wpcap.c
else
CONTIKI_TARGET_SOURCEFILES += tapdev-drv.c
#math
ifneq ($(UIP_CONF_IPV6),1)
CONTIKI_TARGET_SOURCEFILES += tapdev.c
else
CONTIKI_TARGET_SOURCEFILES += tapdev6.c
endif
CONTIKI_TARGET_SOURCEFILES += tapdev-drv.c tapdev.c tapdev6.c
endif
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)