Contiki 2.6

General configuration options

Defines

#define UIP_BUFSIZE
 The size of the uIP packet buffer.
#define UIP_STATISTICS   0
 Determines if statistics support should be compiled in.
#define UIP_LOGGING
 Determines if logging of certain events should be compiled in.
#define UIP_BROADCAST
 Broadcast support.
#define UIP_LLH_LEN
 The link level header length.

Functions

void uip_log (char *msg)
 Print out a uIP log message.

Define Documentation

#define UIP_BROADCAST

Broadcast support.

This flag configures IP broadcast support. This is useful only together with UDP.

Definition at line 561 of file uipopt.h.

#define UIP_BUFSIZE

The size of the uIP packet buffer.

The uIP packet buffer should not be smaller than 60 bytes, and does not need to be larger than 1514 bytes. Lower size results in lower TCP throughput, larger size results in higher TCP throughput.

Definition at line 517 of file uipopt.h.

Referenced by slipdev_poll(), and uip_send().

#define UIP_LLH_LEN

The link level header length.

This is the offset into the uip_buf where the IP header can be found. For Ethernet, this should be set to 14. For SLIP, this should be set to 0.

Note:
we probably won't use this constant for other link layers than ethernet as they have variable header length (this is due to variable number and type of address fields and to optional security features) E.g.: 802.15.4 -> 2 + (1/2*4/8) + 0/5/6/10/14 802.11 -> 4 + (6*3/4) + 2

Definition at line 591 of file uipopt.h.

Referenced by mac_ethernetToLowpan(), mac_LowpanToEthernet(), slipdev_poll(), slipdev_send(), uip_arp_out(), uip_fw_forward(), uip_ipchksum(), uip_process(), uip_send(), and uip_tcpchksum().

#define UIP_LOGGING

Determines if logging of certain events should be compiled in.

This is useful mostly for debugging. The function uip_log() must be implemented to suit the architecture of the project, if logging is turned on.

Definition at line 546 of file uipopt.h.

#define UIP_STATISTICS   0

Determines if statistics support should be compiled in.

The statistics is useful for debugging and to show the user.

Definition at line 531 of file uipopt.h.


Function Documentation

void uip_log ( char *  msg)

Print out a uIP log message.

This function must be implemented by the module that uses uIP, and is called by uIP whenever a log message is generated.

Definition at line 3 of file uip-log.c.