Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

uip-conf.h.example File Reference


Detailed Description

uIP configuration file.

Author:
Adam Dunkels <adam@dunkels.com>
This file contains configuration options for the uIP TCP/IP stack. Each Contiki port will contain its own uip-conf.h file containing architecture specific configuration options.


Defines

#define UIP_CONF_MAX_CONNECTIONS   40
 The maximum number of TCP connections.

#define UIP_CONF_MAX_LISTENPORTS   40
 The maximum number of listening TCP ports.

#define UIP_CONF_BUFFER_SIZE   400
 The size of the uIP packet buffer.

#define UIP_CONF_BYTE_ORDER   LITTLE_ENDIAN
 The host byte order.

#define UIP_CONF_PINGADDRCONF   0
 IP address configuration through ping.


Define Documentation

#define UIP_CONF_BUFFER_SIZE   400
 

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 1500 bytes. Lower size results in lower TCP throughput, larger size results in higher TCP throughput.

#define UIP_CONF_BYTE_ORDER   LITTLE_ENDIAN
 

The host byte order.

Used for telling uIP if the architecture has LITTLE_ENDIAN or BIG_ENDIAN byte order. x86 CPUs have LITTLE_ENDIAN byte order, whereas Motorola CPUs have BIG_ENDIAN. Check the documentation of the CPU to find out the byte order.

#define UIP_CONF_MAX_CONNECTIONS   40
 

The maximum number of TCP connections.

Since the TCP connections are statically allocated, turning this configuration knob down results in less RAM used. Each TCP connection requires approximatly 30 bytes of memory.

#define UIP_CONF_MAX_LISTENPORTS   40
 

The maximum number of listening TCP ports.

Each listening TCP port requires 2 bytes of memory.

#define UIP_CONF_PINGADDRCONF   0
 

IP address configuration through ping.

uIP features IP address configuration using an ICMP echo (ping) packet. In this mode, the destination IP address of the first ICMP echo packet that is received is used to set the host IP address.


Generated on Wed Jul 6 01:19:04 2005 for Contiki/ESB by doxygen 1.3.6