Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


a0fc082d58db6f2db0cc32e38cb5449c9f3ec456
[palacios.git] / palacios / include / uip / uip-conf.h
1 /**
2  * \addtogroup uipopt
3  * @{
4  */
5
6 /**
7  * \name Project-specific configuration options
8  * @{
9  *
10  * uIP has a number of configuration options that can be overridden
11  * for each project. These are kept in a project-specific uip-conf.h
12  * file and all configuration names have the prefix UIP_CONF.
13  */
14
15 /*
16  * Copyright (c) 2006, Swedish Institute of Computer Science.
17  * All rights reserved.
18  *
19  * Redistribution and use in source and binary forms, with or without
20  * modification, are permitted provided that the following conditions
21  * are met:
22  * 1. Redistributions of source code must retain the above copyright
23  *    notice, this list of conditions and the following disclaimer.
24  * 2. Redistributions in binary form must reproduce the above copyright
25  *    notice, this list of conditions and the following disclaimer in the
26  *    documentation and/or other materials provided with the distribution.
27  * 3. Neither the name of the Institute nor the names of its contributors
28  *    may be used to endorse or promote products derived from this software
29  *    without specific prior written permission.
30  *
31  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
32  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34  * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
35  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
39  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
40  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
41  * SUCH DAMAGE.
42  *
43  * This file is part of the uIP TCP/IP stack
44  *
45  * $Id: uip-conf.h,v 1.2 2008/08/06 23:40:07 andrewlxia Exp $
46  */
47
48 /**
49  * \file
50  *         An example uIP configuration file
51  * \author
52  *         Adam Dunkels <adam@sics.se>
53  */
54
55 #ifndef __UIP_CONF_H__
56 #define __UIP_CONF_H__
57
58
59 int uip_appcall(void){
60
61         return 0;
62 }
63
64 #define UIP_APPCALL  uip_appcall    //application function
65 //#define UIP_UDP_APPCALL  uip_appcall 
66
67
68 /**
69  * 8 bit datatype
70  *
71  * This typedef defines the 8-bit type used throughout uIP.
72  *
73  * \hideinitializer
74  */
75 typedef unsigned char u8_t;
76
77 /**
78  * 16 bit datatype
79  *
80  * This typedef defines the 16-bit type used throughout uIP.
81  *
82  * \hideinitializer
83  */
84 typedef unsigned short int u16_t;
85
86 /**
87  * Statistics datatype
88  *
89  * This typedef defines the dataype used for keeping statistics in
90  * uIP.
91  *
92  * \hideinitializer
93  */
94 typedef unsigned short uip_stats_t;
95
96 /**
97  * Maximum number of TCP connections.
98  *
99  * \hideinitializer
100  */
101 #define UIP_CONF_MAX_CONNECTIONS 40
102
103 /**
104  * Maximum number of listening TCP ports.
105  *
106  * \hideinitializer
107  */
108 #define UIP_CONF_MAX_LISTENPORTS 40
109
110 /**
111  * uIP buffer size.
112  *
113  * \hideinitializer
114  */
115 #define UIP_CONF_BUFFER_SIZE     420
116
117 /**
118  * CPU byte order.
119  *
120  * \hideinitializer
121  */
122 #define UIP_CONF_BYTE_ORDER      LITTLE_ENDIAN
123
124 /**
125  * Logging on or off
126  *
127  * \hideinitializer
128  */
129 #define UIP_CONF_LOGGING         1
130
131 /**
132  * UDP support on or off
133  *
134  * \hideinitializer
135  */
136 #define UIP_CONF_UDP             1
137
138 /**
139  * UDP checksums on or off
140  *
141  * \hideinitializer
142  */
143 #define UIP_CONF_UDP_CHECKSUMS   1
144
145 /**
146  * uIP statistics on or off
147  *
148  * \hideinitializer
149  */
150 #define UIP_CONF_STATISTICS      1
151
152 typedef int uip_tcp_appstate_t; //for temporay, should be defined by applications
153 //typedef int uip_udp_appstate_t; //for temporay, should be defined by applications
154
155 /* Here we include the header file for the application(s) we use in
156    our project. */
157 /*#include "smtp.h"*/
158 /*#include "hello-world.h"*/
159 /*#include "telnetd.h"*/
160 //#include "webserver.h"
161 /*#include "dhcpc.h"*/
162 /*#include "resolv.h"*/
163 /*#include "webclient.h"*/
164
165 #endif /* __UIP_CONF_H__ */
166
167 /** @} */
168 /** @} */