33 #ifndef CONTIKI_CONF_H_
34 #define CONTIKI_CONF_H_
39 #include <sys/select.h>
42 struct select_callback {
43 int (* set_fd)(fd_set *fdr, fd_set *fdw);
44 void (* handle_fd)(fd_set *fdr, fd_set *fdw);
46 int select_set_callback(
int fd,
const struct select_callback *callback);
48 #define CC_CONF_REGISTER_ARGS 1
49 #define CC_CONF_FUNCTION_POINTER_ARGS 1
50 #define CC_CONF_VA_ARGS 1
55 #ifndef EEPROM_CONF_SIZE
56 #define EEPROM_CONF_SIZE 1024
61 typedef uint16_t u16_t;
62 typedef uint32_t u32_t;
63 typedef int32_t s32_t;
65 typedef unsigned short uip_stats_t;
68 #if NETSTACK_CONF_WITH_IPV6
97 #define WEBSERVER_CONF_STATUSPAGE 1
103 #if UIP_CONF_IPV6_RPL
110 #define HARD_CODED_ADDRESS "bbbb::10" //the prefix is ignored for a rpl node
111 #define UIP_CONF_ROUTER 0
112 #define UIP_CONF_ND6_SEND_RA 0
113 #define UIP_CONF_ND6_REACHABLE_TIME 600000
114 #define UIP_CONF_ND6_RETRANS_TIMER 10000
116 #if RPL_BORDER_ROUTER
134 #undef UIP_CONF_ROUTER
135 #define UIP_CONF_ROUTER 1
138 #undef UIP_FALLBACK_INTERFACE
139 #define UIP_FALLBACK_INTERFACE rpl_interface
141 #undef HARD_CODED_ADDRESS
142 #define HARD_CODED_ADDRESS "bbbb::1" //bbbb::ff:fe00:1 is the RPL border router default
150 #define UIP_CONF_LLH_LEN 14
151 #define UIP_CONF_MAX_LISTENPORTS 40
152 #define UIP_CONF_MAX_CONNECTIONS 40
153 #define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
154 #define UIP_CONF_TCP_SPLIT 0
155 #define UIP_CONF_IP_FORWARD 0
156 #define UIP_CONF_LOGGING 0
157 #define UIP_CONF_UDP_CHECKSUMS 1
160 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
162 #define NETSTACK_CONF_LINUXRADIO_DEV "wpan0"
164 #define UIP_CONF_UDP 1
165 #define UIP_CONF_TCP 1
167 #if NETSTACK_CONF_WITH_IPV6
168 #define UIP_CONF_IPV6_QUEUE_PKT 1
169 #define UIP_CONF_IPV6_CHECKS 1
170 #define UIP_CONF_IPV6_REASSEMBLY 1
172 #define NBR_TABLE_CONF_MAX_NEIGHBORS 100
173 #define UIP_CONF_DS6_DEFRT_NBU 2
174 #define UIP_CONF_DS6_PREFIX_NBU 5
175 #define UIP_CONF_MAX_ROUTES 100
176 #define UIP_CONF_DS6_ADDR_NBU 10
177 #define UIP_CONF_DS6_MADDR_NBU 0
178 #define UIP_CONF_DS6_AADDR_NBU 0
181 typedef unsigned long clock_time_t;
182 #define CLOCK_CONF_SECOND 1000
183 #define INFINITE_TIME ULONG_MAX
185 #define LOG_CONF_ENABLED 1
188 int strcasecmp(
const char*,
const char*);