Contiki-NG
Macros | Functions

Macros

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

Functions

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

Detailed Description

Macro Definition Documentation

◆ UIP_BROADCAST

#define UIP_BROADCAST

Broadcast support.

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

Definition at line 183 of file uipopt.h.

◆ UIP_BUFSIZE

#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 154 of file uipopt.h.

◆ UIP_LLH_LEN

#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 141 of file uipopt.h.

◆ UIP_STATISTICS

#define UIP_STATISTICS

Determines if statistics support should be compiled in.

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

Definition at line 168 of file uipopt.h.

Function Documentation

◆ uip_log()

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 333 of file platform.c.