RetroArch
uipopt.h
Go to the documentation of this file.
1 
23 /*
24  * Copyright (c) 2001-2003, Adam Dunkels.
25  * All rights reserved.
26  *
27  * Redistribution and use in source and binary forms, with or without
28  * modification, are permitted provided that the following conditions
29  * are met:
30  * 1. Redistributions of source code must retain the above copyright
31  * notice, this list of conditions and the following disclaimer.
32  * 2. Redistributions in binary form must reproduce the above copyright
33  * notice, this list of conditions and the following disclaimer in the
34  * documentation and/or other materials provided with the distribution.
35  * 3. The name of the author may not be used to endorse or promote
36  * products derived from this software without specific prior
37  * written permission.
38  *
39  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
40  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
41  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
42  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
43  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
44  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
45  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
46  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
47  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
48  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
49  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50  *
51  * This file is part of the uIP TCP/IP stack.
52  *
53  *
54  */
55 
56 #ifndef __UIPOPT_H__
57 #define __UIPOPT_H__
58 
59 #include <gctypes.h>
60 #include <stdlib.h>
61 #include <string.h>
62 
63 /*------------------------------------------------------------------------------*/
75 typedef u8 u8_t;
76 
83 typedef s8 s8_t;
84 
91 typedef u16 u16_t;
92 
99 typedef s16 s16_t;
100 
107 typedef s32 s32_t;
108 
115 typedef u32 u32_t;
116 
123 typedef u16 uip_stats_t;
124 
126 /*------------------------------------------------------------------------------*/
137 #define UIP_TCP_TTL 255
138 
139 #define UIP_TCP 1
140 
154 #define UIP_IP_REASSEMBLY 0
155 
156 #define UIP_IP_FRAG 0
157 
163 #define UIP_REASS_MAXAGE 30
164 
167 /*------------------------------------------------------------------------------*/
183 #define UIP_UDP 0
184 
193 #define UIP_UDP_CHECKSUMS 0
194 
200 #define UIP_UDP_CONNS 10
201 
207 //#define UIP_UDP_APPCALL ((void*0)
208 
210 /*------------------------------------------------------------------------------*/
226 #define UIP_ACTIVE_OPEN 1
227 
237 #define UIP_TCP_PCBS 4
238 
246 #define UIP_LISTEN_TCP_PCBS 2
247 
257 #define UIP_TCPIP_SOCKS 32
258 
259 #define UIP_TCP_SEGS 32
260 
261 
271 #define UIP_URGDATA 1
272 
278 #define UIP_RTO 3
279 
286 #define UIP_MAXRTX 12
287 
295 #define UIP_MAXSYNRTX 4
296 
302 #define UIP_TCP_MSS (1460)
303 
304 
305 #define UIP_TCP_SND_BUF (4*UIP_TCP_MSS)
306 
307 #define UIP_TCP_SND_QUEUELEN (4*UIP_TCP_SND_BUF/UIP_TCP_MSS)
308 
309 #define UIP_TCP_WND (4*UIP_TCP_MSS)
310 
317 #define UIP_TIME_WAIT_TIMEOUT 120
318 
319 
321 /*------------------------------------------------------------------------------*/
335 #define UIP_ARPTAB_SIZE 8
336 
343 #define UIP_ARP_MAXAGE 120
344 
347 /*------------------------------------------------------------------------------*/
348 
363 #define UIP_MEM_SIZE (28*1024)
364 
365 #define UIP_PBUF_POOL_NUM 16
366 #define UIP_PBUF_POOL_BUFSIZE 1600
367 
368 #define UIP_PBUF_ROM_NUM 128
369 
370 
378 #define UIP_STATISTICS 0
379 
389 #define UIP_LOGGING 0
390 #define UIP_ERRORING 0
391 
398 void uip_log(const char *filename,int line_nb,char *msg);
399 
409 #define UIP_LL_HLEN 16
410 
411 #define UIP_TCPIP_HLEN 40
412 
413 /*------------------------------------------------------------------------------*/
424 #ifndef LITTLE_ENDIAN
425 #define LITTLE_ENDIAN 3412
426 #endif /* LITTLE_ENDIAN */
427 #ifndef BIG_ENDIAN
428 #define BIG_ENDIAN 1234
429 #endif /* BIGE_ENDIAN */
430 
439 #ifndef BYTE_ORDER
440 #define BYTE_ORDER BIG_ENDIAN
441 #endif /* BYTE_ORDER */
442 
444 /*------------------------------------------------------------------------------*/
445 
494 /* Include the header file for the application program that should be
495  used. If you don't use the example web server, you should change
496  this. */
497 
498 #define UIP_LIBC_MEMFUNCREPLACE 1
499 
500 #endif /* __UIPOPT_H__ */
int32_t s32
32bit signed integer
Definition: gctypes.h:24
Data type definitions.
int8_t s8
8bit signed integer
Definition: gctypes.h:22
u32 u32_t
Definition: uipopt.h:115
s32 s32_t
Definition: uipopt.h:107
void uip_log(const char *filename, int line_nb, char *msg)
Definition: uip_arch.c:110
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
s16 s16_t
Definition: uipopt.h:99
u16 u16_t
Definition: uipopt.h:91
static const unsigned char msg[]
Definition: ccm.c:375
u8 u8_t
Definition: uipopt.h:75
int16_t s16
16bit signed integer
Definition: gctypes.h:23
s8 s8_t
Definition: uipopt.h:83
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
u16 uip_stats_t
Definition: uipopt.h:123