Defines

uipopt.h File Reference

#include "uip-conf.h"

Go to the source code of this file.

Defines

#define UIP_LITTLE_ENDIAN   3412
#define UIP_BIG_ENDIAN   1234
Static configuration options

These configuration options can be used for setting the IP address settings statically, but only if UIP_FIXEDADDR is set to 1. The configuration options for a specific node includes IP address, netmask and default router as well as the Ethernet address. The netmask, default router and Ethernet address are appliciable only if uIP should be run over Ethernet.

All of these should be changed to suit your project.

#define UIP_FIXEDADDR
#define UIP_PINGADDRCONF
#define UIP_FIXEDETHADDR
IP configuration options

#define UIP_TTL   64
#define UIP_REASSEMBLY
#define UIP_REASS_MAXAGE   40
UDP configuration options

#define UIP_UDP
#define UIP_UDP_CHECKSUMS
#define UIP_UDP_CONNS
TCP configuration options

The name of the function that should be called when UDP datagrams arrive.

#define UIP_ACTIVE_OPEN
#define UIP_CONNS
#define UIP_LISTENPORTS
#define UIP_URGDATA
#define UIP_RTO   3
#define UIP_MAXRTX   8
#define UIP_MAXSYNRTX   5
#define UIP_TCP_MSS   (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN)
#define UIP_RECEIVE_WINDOW
#define UIP_TIME_WAIT_TIMEOUT   120
ARP configuration options

#define UIP_ARPTAB_SIZE
#define UIP_ARP_MAXAGE   120
CPU architecture configuration

The CPU architecture configuration is where the endianess of the CPU on which uIP is to be run is specified. Most CPUs today are little endian, and the most notable exception are the Motorolas which are big endian. The BYTE_ORDER macro should be changed to reflect the CPU architecture on which uIP is to be run.

#define UIP_BYTE_ORDER

General configuration options



#define UIP_BUFSIZE
#define UIP_STATISTICS
#define UIP_LOGGING
#define UIP_BROADCAST
#define UIP_LLH_LEN
void uip_log (char *msg)

Detailed Description

Configuration options for uIP.

Author:
Adam Dunkels <adam@dunkels.com>

This file is used for tweaking various configuration options for uIP. You should make a copy of this file into one of your project's directories instead of editing this example "uipopt.h" file that comes with the uIP distribution.

Definition in file uipopt.h.