Cleanup UIP_CONF_IPV6_RPL configuration
This commit is contained in:
parent
6891bcdd20
commit
c2ca3e9fdb
@ -88,10 +88,16 @@ endif
|
||||
ifeq ($(CONTIKI_WITH_IPV6),1)
|
||||
CFLAGS += -DNETSTACK_CONF_WITH_IPV6=1
|
||||
ifneq ($(CONTIKI_WITH_RPL),0)
|
||||
CONTIKI_WITH_RPL = 1
|
||||
endif
|
||||
MODULES += core/net/ipv6 core/net/ip
|
||||
endif
|
||||
|
||||
ifeq ($(CONTIKI_WITH_RPL),1)
|
||||
CFLAGS += -DUIP_CONF_IPV6_RPL=1
|
||||
MODULES += core/net/rpl
|
||||
endif # UIP_CONF_RPL
|
||||
MODULES += core/net/ipv6 core/net/ip
|
||||
else
|
||||
CFLAGS += -DUIP_CONF_IPV6_RPL=0
|
||||
endif
|
||||
|
||||
CONTIKI_SOURCEFILES += $(CONTIKIFILES)
|
||||
|
@ -616,7 +616,7 @@ tcpip_ipv6_output(void)
|
||||
|
||||
rpl_repair_root(instance->instance_id);
|
||||
}
|
||||
#endif /* UIP_CONF_RPL */
|
||||
#endif /* UIP_CONF_IPV6_RPL */
|
||||
uip_ds6_route_rm(route);
|
||||
|
||||
/* We don't have a nexthop to send the packet to, so we drop
|
||||
|
@ -41,7 +41,7 @@ ${info INFO: er-example compiling with large buffers}
|
||||
CFLAGS += -DUIP_CONF_BUFFER_SIZE=1300
|
||||
CFLAGS += -DREST_MAX_CHUNK_SIZE=1024
|
||||
CFLAGS += -DCOAP_MAX_HEADER_SIZE=176
|
||||
UIP_CONF_RPL=0
|
||||
CONTIKI_WITH_RPL=0
|
||||
endif
|
||||
|
||||
# optional rules to get assembly
|
||||
|
@ -52,7 +52,6 @@
|
||||
#undef UIP_CONF_IPV6_RPL
|
||||
#undef UIP_CONF_ND6_SEND_RA
|
||||
#undef UIP_CONF_ROUTER
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#define UIP_CONF_ND6_SEND_RA 0
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#define UIP_MCAST6_ROUTE_CONF_ROUTES 1
|
||||
|
@ -162,7 +162,6 @@ typedef unsigned short uip_stats_t;
|
||||
#define UIP_CONF_ICMP6 1
|
||||
#define UIP_CONF_UDP 1
|
||||
#define UIP_CONF_TCP 1
|
||||
//#define UIP_CONF_IPV6_RPL 0
|
||||
#define NETSTACK_CONF_NETWORK sicslowpan_driver
|
||||
#define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
|
||||
#else
|
||||
|
@ -222,7 +222,6 @@ extern void mac_log_802_15_4_rx(const uint8_t* buffer, size_t total_len);
|
||||
#define UIP_CONF_ICMP6 1
|
||||
#define UIP_CONF_UDP 1
|
||||
#define UIP_CONF_TCP 0
|
||||
//#define UIP_CONF_IPV6_RPL 0
|
||||
#define NETSTACK_CONF_NETWORK sicslowpan_driver
|
||||
#define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
|
||||
#else
|
||||
@ -380,7 +379,6 @@ typedef unsigned short uip_stats_t;
|
||||
//#pragma mark RPL Settings
|
||||
/* ************************************************************************** */
|
||||
|
||||
#define UIP_CONF_IPV6_RPL 0
|
||||
#if UIP_CONF_IPV6_RPL
|
||||
|
||||
/* Not completely working yet. Works on Ubuntu after $ifconfig usb0 -arp to drop the neighbor solitications */
|
||||
|
@ -445,10 +445,6 @@ typedef uint32_t rtimer_clock_t;
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#endif
|
||||
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif
|
||||
|
||||
#define UIP_CONF_ND6_SEND_RA 0
|
||||
#define UIP_CONF_IP_FORWARD 0
|
||||
#define RPL_CONF_STATS 0
|
||||
|
@ -98,5 +98,5 @@ ifeq ($(CONTIKI_WITH_IPV6),1)
|
||||
CFLAGS += -DNETSTACK_CONF_WITH_IPV6=1
|
||||
ifneq ($(CONTIKI_WITH_RPL),0)
|
||||
CFLAGS += -DUIP_CONF_IPV6_RPL=1
|
||||
endif # UIP_CONF_RPL
|
||||
endif
|
||||
endif
|
||||
|
@ -124,9 +124,6 @@
|
||||
#define UIP_CONF_LLH_LEN 0
|
||||
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif /* UIP_CONF_IPV6_RPL */
|
||||
|
||||
/* configure number of neighbors and routes */
|
||||
#ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
|
||||
|
@ -180,10 +180,6 @@
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#endif
|
||||
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif
|
||||
|
||||
#define NBR_TABLE_CONF_MAX_NEIGHBORS 30
|
||||
#define UIP_CONF_MAX_ROUTES 30
|
||||
|
||||
|
@ -127,10 +127,6 @@
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#endif
|
||||
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif
|
||||
|
||||
#define NBR_TABLE_CONF_MAX_NEIGHBORS 16
|
||||
#define UIP_CONF_MAX_ROUTES 16
|
||||
|
||||
|
@ -130,10 +130,6 @@
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#endif
|
||||
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif
|
||||
|
||||
#define NBR_TABLE_CONF_MAX_NEIGHBORS 30
|
||||
#define UIP_CONF_MAX_ROUTES 30
|
||||
|
||||
|
@ -143,9 +143,6 @@
|
||||
#define UIP_CONF_LLH_LEN 0
|
||||
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif /* UIP_CONF_IPV6_RPL */
|
||||
|
||||
/* configure number of neighbors and routes */
|
||||
#ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
|
||||
|
@ -135,7 +135,6 @@
|
||||
#endif /* WITH_COAP */
|
||||
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#define UIP_CONF_ND6_SEND_RA 0
|
||||
|
||||
#define NETSTACK_CONF_WITH_IPV6 1
|
||||
|
@ -123,7 +123,6 @@
|
||||
#define UIP_CONF_LLH_LEN 0
|
||||
|
||||
#define UIP_CONF_ROUTER 0
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
|
||||
/* configure number of neighbors and routes */
|
||||
#define NBR_TABLE_CONF_MAX_NEIGHBORS 5
|
||||
|
@ -89,7 +89,6 @@ typedef unsigned short uip_stats_t;
|
||||
#define WEBSERVER_CONF_STATUSPAGE 1
|
||||
|
||||
/* RPL currently works only on Windows. *nix would require converting the tun interface to two pcap tees. */
|
||||
//#define UIP_CONF_IPV6_RPL 0
|
||||
//#define RPL_BORDER_ROUTER 0
|
||||
#endif
|
||||
|
||||
|
@ -102,9 +102,6 @@ typedef unsigned short uip_stats_t;
|
||||
#define NETSTACK_CONF_NETWORK sicslowpan_driver
|
||||
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif /* UIP_CONF_IPV6_RPL */
|
||||
|
||||
#define SICSLOWPAN_CONF_COMPRESSION_IPV6 0
|
||||
#define SICSLOWPAN_CONF_COMPRESSION_HC1 1
|
||||
|
@ -89,9 +89,6 @@ typedef uint32_t rtimer_clock_t;
|
||||
|
||||
#ifdef NETSTACK_CONF_WITH_IPV6
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif /* UIP_CONF_IPV6_RPL */
|
||||
|
||||
/* IPv6 configuration options */
|
||||
#define NETSTACK_CONF_WITH_IPV6 1
|
||||
|
@ -143,9 +143,6 @@
|
||||
#define UIP_CONF_LLH_LEN 0
|
||||
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif /* UIP_CONF_IPV6_RPL */
|
||||
|
||||
/* configure number of neighbors and routes */
|
||||
#ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
|
||||
|
@ -127,9 +127,6 @@
|
||||
#define UIP_CONF_LLH_LEN 0
|
||||
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#ifndef UIP_CONF_IPV6_RPL
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
#endif /* UIP_CONF_IPV6_RPL */
|
||||
|
||||
/* configure number of neighbors and routes */
|
||||
#ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
|
||||
|
@ -138,7 +138,6 @@
|
||||
#define UIP_CONF_LLH_LEN 0
|
||||
|
||||
#define UIP_CONF_ROUTER 1
|
||||
#define UIP_CONF_IPV6_RPL 1
|
||||
|
||||
/* Handle 10 neighbors */
|
||||
#define NBR_TABLE_CONF_MAX_NEIGHBORS 15
|
||||
|
Loading…
Reference in New Issue
Block a user