8bc9b3b51fb5a01a4ea06c02d2da76df683b53f2
[bertos.git] / bertos / net / lwip.c
1 /**
2  * \file
3  * <!--
4  * This file is part of BeRTOS.
5  *
6  * Bertos is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  * As a special exception, you may use this file as part of a free software
21  * library without restriction.  Specifically, if other files instantiate
22  * templates or use macros or inline functions from this file, or you compile
23  * this file and link it with other files to produce an executable, this
24  * file does not by itself cause the resulting executable to be covered by
25  * the GNU General Public License.  This exception does not however
26  * invalidate any other reasons why the executable file might be covered by
27  * the GNU General Public License.
28  *
29  * Copyright 2010 Develer S.r.l. (http://www.develer.com/)
30  *
31  * -->
32  * \brief lwIP TCP/IP stack module
33  *
34  * \author Andrea Righi <arighi@develer.com>
35  */
36
37 /* XXX: exclude all the lwIP stuff from the BeRTOS documentation for now  */
38 #ifndef __doxygen__
39 /* Ensure that the lwIP compile-time options are included first. */
40 #include "cfg/cfg_lwip.h"
41
42 /* Core lwIP TCP/IP stack */
43 #if LWIP_DHCP
44 #include "lwip/src/core/dhcp.c"
45 #endif
46 #if LWIP_DNS
47 #include "lwip/src/core/dns.c"
48 #endif
49 #include "lwip/src/core/init.c"
50 #include "lwip/src/core/mem.c"
51 #include "lwip/src/core/memp.c"
52 #include "lwip/src/core/netif.c"
53 #include "lwip/src/core/pbuf.c"
54 #include "lwip/src/core/raw.c"
55 #include "lwip/src/core/stats.c"
56 #include "lwip/src/core/sys.c"
57 #if LWIP_TCP
58 #include "lwip/src/core/tcp.c"
59 #include "lwip/src/core/tcp_in.c"
60 #include "lwip/src/core/tcp_out.c"
61 #endif
62 #if LWIP_UDP
63 #include "lwip/src/core/udp.c"
64 #endif
65
66 /* lwIP high-level API code */
67 #include "lwip/src/api/api_lib.c"
68 #include "lwip/src/api/api_msg.c"
69 #include "lwip/src/api/err.c"
70 #include "lwip/src/api/netbuf.c"
71 #include "lwip/src/api/netdb.c"
72 #include "lwip/src/api/netifapi.c"
73 #include "lwip/src/api/sockets.c"
74 #include "lwip/src/api/tcpip.c"
75
76 /* lwIP IPV4 implementation */
77 #if LWIP_AUTOIP
78 #include "lwip/src/core/ipv4/autoip.c"
79 #endif
80 #if LWIP_ICMP
81 #include "lwip/src/core/ipv4/icmp.c"
82 #endif
83 #if LWIP_IGMP
84 #include "lwip/src/core/ipv4/igmp.c"
85 #endif
86 #include "lwip/src/core/ipv4/inet.c"
87 #include "lwip/src/core/ipv4/inet_chksum.c"
88 #include "lwip/src/core/ipv4/ip.c"
89 #include "lwip/src/core/ipv4/ip_addr.c"
90 #include "lwip/src/core/ipv4/ip_frag.c"
91
92 /* lwIP SNMP implementation */
93 #if LWIP_SNMP
94 #include "lwip/src/core/snmp/asn1_dec.c"
95 #include "lwip/src/core/snmp/asn1_enc.c"
96 #include "lwip/src/core/snmp/mib2.c"
97 #include "lwip/src/core/snmp/mib_structs.c"
98 #include "lwip/src/core/snmp/msg_in.c"
99 #include "lwip/src/core/snmp/msg_out.c"
100 #endif
101
102 /* lwIP network interface */
103 #if LWIP_ARP
104 #include "lwip/src/netif/etharp.c"
105 #endif
106 #include "lwip/src/netif/loopif.c"
107
108 /* lwIP PPP implementation */
109 #if PPP_SUPPORT
110 #include "lwip/src/netif/ppp/auth.c"
111 #include "lwip/src/netif/ppp/chap.c"
112 #include "lwip/src/netif/ppp/chpms.c"
113 #include "lwip/src/netif/ppp/fsm.c"
114 #include "lwip/src/netif/ppp/ipcp.c"
115 #include "lwip/src/netif/ppp/lcp.c"
116 #include "lwip/src/netif/ppp/magic.c"
117 #include "lwip/src/netif/ppp/md5.c"
118 #include "lwip/src/netif/ppp/pap.c"
119 #include "lwip/src/netif/ppp/ppp.c"
120 #include "lwip/src/netif/ppp/ppp_oe.c"
121 #include "lwip/src/netif/ppp/randm.c"
122 #include "lwip/src/netif/ppp/vj.c"
123 #endif
124
125 /* BeRTOS-specific lwIP interface/porting layer */
126 #include "lwip/src/netif/ethernetif.c"
127 #include "lwip/src/arch/sys_arch.c"
128 #endif /* __doxygen__ */