blob: e6392f487cff68c1307438057cb8e9da0fc2b594 [file] [log] [blame]
kthacker6de67752006-04-17 15:02:26 +00001/**
2 * \file
3 * uIP configuration file.
4 * \author Adam Dunkels <adam@dunkels.com>
5 *
6 * This file contains configuration options for the uIP TCP/IP
7 * stack. Each Contiki port will contain its own uip-conf.h file
8 * containing architecture specific configuration options.
9 *
10 */
11
12/*
13 * Copyright (c) 2003, Adam Dunkels.
14 * All rights reserved.
15 *
16 * Redistribution and use in source and binary forms, with or without
17 * modification, are permitted provided that the following conditions
18 * are met:
19 * 1. Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer.
21 * 2. Redistributions in binary form must reproduce the above
22 * copyright notice, this list of conditions and the following
23 * disclaimer in the documentation and/or other materials provided
24 * with the distribution.
25 * 3. The name of the author may not be used to endorse or promote
26 * products derived from this software without specific prior
27 * written permission.
28 *
29 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
30 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
31 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
33 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
35 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
37 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
38 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 * This file is part of the Contiki Destop OS
42 *
43 * $Id: uip-conf.h,v 1.1 2006/04/17 15:02:27 kthacker Exp $
44 *
45 */
46#ifndef __UIP_CONF_H__
47#define __UIP_CONF_H__
48
49/**
50 * The maximum number of TCP connections.
51 *
52 * Since the TCP connections are statically allocated, turning this
53 * configuration knob down results in less RAM used. Each TCP
54 * connection requires approximatly 30 bytes of memory.
55 */
56#define UIP_CONF_MAX_CONNECTIONS 40
57
58/**
59 * The maximum number of listening TCP ports.
60 *
61 * Each listening TCP port requires 2 bytes of memory.
62 */
63#define UIP_CONF_MAX_LISTENPORTS 40
64
65/**
66 * The size of the uIP packet buffer.
67 *
68 * The uIP packet buffer should not be smaller than 60 bytes, and does
69 * not need to be larger than 1500 bytes. Lower size results in lower
70 * TCP throughput, larger size results in higher TCP throughput.
71 */
72#define UIP_CONF_BUFFER_SIZE 400
73
74/**
75 * The host byte order.
76 *
77 * Used for telling uIP if the architecture has LITTLE_ENDIAN or
78 * BIG_ENDIAN byte order. x86 CPUs have LITTLE_ENDIAN byte order,
79 * whereas Motorola CPUs have BIG_ENDIAN. Check the documentation of
80 * the CPU to find out the byte order.
81 */
82#define UIP_CONF_BYTE_ORDER LITTLE_ENDIAN
83
84
85/**
86 * IP address configuration through ping.
87 *
88 * uIP features IP address configuration using an ICMP echo (ping)
89 * packet. In this mode, the destination IP address of the first ICMP
90 * echo packet that is received is used to set the host IP address.
91 */
92#define UIP_CONF_PINGADDRCONF 0
93#endif /* __UIP_CONF_H__ */