提交 be64fcba 编写于 作者: L liuxianliang

[update] remove lwIP 2.1.0.

Signed-off-by: Nliuxianliang <liuxianliang@rt-thread.com>
上级 8bc03451
......@@ -118,20 +118,17 @@ config RT_USING_LWIP
config RT_USING_LWIP202
bool "lwIP v2.0.2"
config RT_USING_LWIP210
bool "lwIP v2.1.0"
config RT_USING_LWIP212
bool "lwIP v2.1.2"
endchoice
if (RT_USING_LWIP210 || RT_USING_LWIP202 || RT_USING_LWIP212)
if (RT_USING_LWIP202 || RT_USING_LWIP212)
config RT_USING_LWIP_IPV6
bool "IPV6 protocol"
default n
select NETDEV_USING_IPV6
select NETDEV_IPV6_SCOPES if RT_USING_LWIP210
select NETDEV_IPV6_SCOPES if RT_USING_LWIP212
endif
config RT_LWIP_IGMP
......
......@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
list = os.listdir(cwd)
# the default version of LWIP is 2.0.2
if not GetDepend('RT_USING_LWIP141') and not GetDepend('RT_USING_LWIP202') and not GetDepend('RT_USING_LWIP210') and not GetDepend('RT_USING_LWIP212'):
if not GetDepend('RT_USING_LWIP141') and not GetDepend('RT_USING_LWIP202') and not GetDepend('RT_USING_LWIP212'):
AddDepend('RT_USING_LWIP202')
for d in list:
......
此差异已折叠。
cmake_minimum_required(VERSION 3.7)
project(lwIP)
set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR})
include(src/Filelists.cmake)
# Package generation
set(CPACK_SOURCE_GENERATOR "ZIP")
set(CPACK_SOURCE_PACKAGE_DESCRIPTION_SUMMARY "lwIP lightweight IP stack")
set(CPACK_PACKAGE_VERSION_MAJOR "${LWIP_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${LWIP_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${LWIP_VERSION_REVISION}")
set(CPACK_SOURCE_IGNORE_FILES "/build/;${CPACK_SOURCE_IGNORE_FILES};.git")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "lwip-${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MINOR}.${LWIP_VERSION_REVISION}")
include(CPack)
# Target for package generation
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
add_dependencies(dist lwipdocs)
/*
* Copyright (c) 2001, 2002 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
* This file is part of the lwIP TCP/IP stack.
*
* Author: Adam Dunkels <adam@sics.se>
*
*/
lwIP is a small independent implementation of the TCP/IP protocol suite targeted at embedded systems.
The focus of the lwIP TCP/IP implementation is to reduce resource usage while still having a full scale TCP. This makes lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM.
Main features include:
- Protocols: IP, IPv6, ICMP, ND, MLD, UDP, TCP, IGMP, ARP, PPPoS, PPPoE, 6LowPAN (via IEEE 802.15.4, BLE or ZEP; since v2.1.0)
- DHCP client, stateless DHCPv6 (since v2.1.0), DNS client (incl. mDNS hostname resolver), AutoIP/APIPA (Zeroconf), SNMP agent (v1, v2c, v3 (since v2.1.0), private MIB support & MIB compiler)
- APIs: specialized APIs for enhanced performance & zero copy, optional Berkeley-alike socket API
- Extended features: IP forwarding over multiple network interfaces
- Extended TCP features: congestion control, RTT estimation and fast recovery/fast retransmit, sending SACKs (since v2.1.0), "altcp": nearly transparent TLS for any tcp pcb (since v2.1.0)
- Addon applications: HTTP server (HTTPS via altcp), HTTP(S) client (since v2.1.0), SNTP client, SMTP client (SMTPS via altcp), ping, NetBIOS nameserver, mDNS responder, MQTT client (TLS support since v2.1.0), TFTP server, iPerf2 counterpart
src/ - The source code for the lwIP TCP/IP stack.
doc/ - The documentation for lwIP.
test/ - Some code to test whether the sources do what they should.
See also the FILES file in each subdirectory.
INTRODUCTION
lwIP is a small independent implementation of the TCP/IP protocol suite.
The focus of the lwIP TCP/IP implementation is to reduce the RAM usage
while still having a full scale TCP. This making lwIP suitable for use
in embedded systems with tens of kilobytes of free RAM and room for
around 40 kilobytes of code ROM.
lwIP was originally developed by Adam Dunkels at the Computer and Networks
Architectures (CNA) lab at the Swedish Institute of Computer Science (SICS)
and is now developed and maintained by a worldwide network of developers.
FEATURES
* IP (Internet Protocol, IPv4 and IPv6) including packet forwarding over
multiple network interfaces
* ICMP (Internet Control Message Protocol) for network maintenance and debugging
* IGMP (Internet Group Management Protocol) for multicast traffic management
* MLD (Multicast listener discovery for IPv6). Aims to be compliant with
RFC 2710. No support for MLDv2
* ND (Neighbor discovery and stateless address autoconfiguration for IPv6).
Aims to be compliant with RFC 4861 (Neighbor discovery) and RFC 4862
(Address autoconfiguration)
* DHCP, AutoIP/APIPA (Zeroconf) and (stateless) DHCPv6
* UDP (User Datagram Protocol) including experimental UDP-lite extensions
* TCP (Transmission Control Protocol) with congestion control, RTT estimation
fast recovery/fast retransmit and sending SACKs
* raw/native API for enhanced performance
* Optional Berkeley-like socket API
* TLS: optional layered TCP ("altcp") for nearly transparent TLS for any
TCP-based protocol (ported to mbedTLS) (see changelog for more info)
* PPPoS and PPPoE (Point-to-point protocol over Serial/Ethernet)
* DNS (Domain name resolver incl. mDNS)
* 6LoWPAN (via IEEE 802.15.4, BLE or ZEP)
APPLICATIONS
* HTTP server with SSI and CGI (HTTPS via altcp)
* SNMPv2c agent with MIB compiler (Simple Network Management Protocol), v3 via altcp
* SNTP (Simple network time protocol)
* NetBIOS name service responder
* MDNS (Multicast DNS) responder
* iPerf server implementation
* MQTT client (TLS support via altcp)
LICENSE
lwIP is freely available under a BSD license.
DEVELOPMENT
lwIP has grown into an excellent TCP/IP stack for embedded devices,
and developers using the stack often submit bug fixes, improvements,
and additions to the stack to further increase its usefulness.
Development of lwIP is hosted on Savannah, a central point for
software development, maintenance and distribution. Everyone can
help improve lwIP by use of Savannah's interface, Git and the
mailing list. A core team of developers will commit changes to the
Git source tree.
The lwIP TCP/IP stack is maintained in the 'lwip' Git module and
contributions (such as platform ports) are in the 'contrib' Git module.
See doc/savannah.txt for details on Git server access for users and
developers.
The current Git trees are web-browsable:
http://git.savannah.gnu.org/cgit/lwip.git
http://git.savannah.gnu.org/cgit/lwip/lwip-contrib.git
Submit patches and bugs via the lwIP project page:
http://savannah.nongnu.org/projects/lwip/
Continuous integration builds (GCC, clang):
https://travis-ci.org/yarrick/lwip-merged
DOCUMENTATION
Self documentation of the source code is regularly extracted from the current
Git sources and is available from this web page:
http://www.nongnu.org/lwip/
There is now a constantly growing wiki about lwIP at
http://lwip.wikia.com/wiki/LwIP_Wiki
Also, there are mailing lists you can subscribe at
http://savannah.nongnu.org/mail/?group=lwip
plus searchable archives:
http://lists.nongnu.org/archive/html/lwip-users/
http://lists.nongnu.org/archive/html/lwip-devel/
lwIP was originally written by Adam Dunkels:
http://dunkels.com/adam/
Reading Adam's papers, the files in docs/, browsing the source code
documentation and browsing the mailing list archives is a good way to
become familiar with the design of lwIP.
Adam Dunkels <adam@sics.se>
Leon Woestenberg <leon.woestenberg@gmx.net>
Porting network interface device for RT-Thread in lwIP.
The major jobs following RT-Thread Team. The RT-Thread network interface device need to synchronize some network status and address information in lwIP, so it need to make some changes in the lwIP netwrok status and address operations function.
The specific changes are as follows:
- netif.c: add RT-Thread netdev header file , status synchronize(UP, LINK_UP), address synchronize(IP, netmask, gateway);
- dns.c: add RT-Thread header file, dns servers synchronize;
- sockets.c: custom 'select' function implementation in RT-Thread by the wait queue mode.
by ChenYong 2019/3/26 10:00 AM
chenyong@rt-thread.com
from building import *
# get current directory
cwd = GetCurrentDir()
# 1. The minimum set of files needed for lwIP.
lwipcore_SRCS = Split("""
src/core/init.c
src/core/def.c
src/core/dns.c
src/core/inet_chksum.c
src/core/ip.c
src/core/memp.c
src/core/netif.c
src/core/pbuf.c
src/core/raw.c
src/core/stats.c
src/core/sys.c
src/core/tcp.c
src/core/tcp_in.c
src/core/tcp_out.c
src/core/timeouts.c
src/core/udp.c
""")
# 1.1
lwipcore_altcp_SRCS = Split("""
src/core/altcp.c
src/core/altcp_alloc.c
src/core/altcp_tcp.c
""")
# 1.2
lwipcore4_SRCS = Split("""
src/core/ipv4/autoip.c
src/core/ipv4/dhcp.c
src/core/ipv4/etharp.c
src/core/ipv4/icmp.c
src/core/ipv4/igmp.c
src/core/ipv4/ip4_frag.c
src/core/ipv4/ip4.c
src/core/ipv4/ip4_addr.c
""")
# 1.3
lwipcore6_SRCS = Split("""
src/core/ipv6/dhcp6.c
src/core/ipv6/ethip6.c
src/core/ipv6/icmp6.c
src/core/ipv6/inet6.c
src/core/ipv6/ip6.c
src/core/ipv6/ip6_addr.c
src/core/ipv6/ip6_frag.c
src/core/ipv6/mld6.c
src/core/ipv6/nd6.c
""")
# 2. APIFILES: The files which implement the sequential and socket APIs.
lwipapi_SRCS = Split("""
src/api/api_lib.c
src/api/api_msg.c
src/api/err.c
src/api/if_api.c
src/api/netbuf.c
src/api/netdb.c
src/api/netifapi.c
src/api/sockets.c
src/api/tcpip.c
""")
# 3. Files implementing various generic network interface functions
lwipnetif_SRCS = Split("""
src/netif/ethernet.c
src/netif/ethernetif.c
""")
# 3.1 Files implementing an IEEE 802.1D bridge by using a multilayer netif approach
lwipnetif_bridgeif_SRCS = Split("""
src/netif/bridgeif.c
src/netif/bridgeif_fdb.c
""")
# 3.2 A generic implementation of the SLIP (Serial Line IP) protocol.
lwipnetif_slipif_SRCS = Split("""
src/netif/slipif.c
""")
# 4. 6LoWPAN
lwipsixlowpan_SRCS = Split("""
src/netif/lowpan6.c
""")
# 4.1 A 6LoWPAN over Bluetooth Low Energy (BLE) implementation as netif,
# according to RFC-7668.
lwipsixlowpan_ble_SRCS = Split("""
src/netif/lowpan6_ble.c
""")
# 4.2 Common 6LowPAN routines for IPv6.
lwipsixlowpan_ipv6_SRCS = Split("""
src/netif/lowpan6_common.c
""")
# 4.3 A netif implementing the ZigBee Encapsulation Protocol (ZEP).
lwipsixlowpan_zep_SRCS = Split("""
src/netif/zepif.c
""")
# 5. PPP
lwipppp_SRCS = Split("""
src/netif/ppp/auth.c
src/netif/ppp/ccp.c
src/netif/ppp/chap-md5.c
src/netif/ppp/chap_ms.c
src/netif/ppp/chap-new.c
src/netif/ppp/demand.c
src/netif/ppp/eap.c
src/netif/ppp/ecp.c
src/netif/ppp/eui64.c
src/netif/ppp/fsm.c
src/netif/ppp/ipcp.c
src/netif/ppp/ipv6cp.c
src/netif/ppp/lcp.c
src/netif/ppp/magic.c
src/netif/ppp/mppe.c
src/netif/ppp/multilink.c
src/netif/ppp/ppp.c
src/netif/ppp/pppapi.c
src/netif/ppp/pppcrypt.c
src/netif/ppp/pppoe.c
src/netif/ppp/pppol2tp.c
src/netif/ppp/pppos.c
src/netif/ppp/upap.c
src/netif/ppp/utils.c
src/netif/ppp/vj.c
src/netif/ppp/polarssl/arc4.c
src/netif/ppp/polarssl/des.c
src/netif/ppp/polarssl/md4.c
src/netif/ppp/polarssl/md5.c
src/netif/ppp/polarssl/sha1.c
""")
# 6. SNMPv3 agent
lwipsnmp_SRCS = Split("""
src/apps/snmp/snmp_asn1.c
src/apps/snmp/snmp_core.c
src/apps/snmp/snmp_mib2.c
src/apps/snmp/snmp_mib2_icmp.c
src/apps/snmp/snmp_mib2_interfaces.c
src/apps/snmp/snmp_mib2_ip.c
src/apps/snmp/snmp_mib2_snmp.c
src/apps/snmp/snmp_mib2_system.c
src/apps/snmp/snmp_mib2_tcp.c
src/apps/snmp/snmp_mib2_udp.c
src/apps/snmp/snmp_snmpv2_framework.c
src/apps/snmp/snmp_snmpv2_usm.c
src/apps/snmp/snmp_msg.c
src/apps/snmp/snmpv3.c
src/apps/snmp/snmp_netconn.c
src/apps/snmp/snmp_pbuf_stream.c
src/apps/snmp/snmp_raw.c
src/apps/snmp/snmp_scalar.c
src/apps/snmp/snmp_table.c
src/apps/snmp/snmp_threadsync.c
src/apps/snmp/snmp_traps.c
""")
# 7. HTTP server + client
lwiphttp_SRCS = Split("""
src/apps/http/altcp_proxyconnect.c
src/apps/http/fs.c
src/apps/http/http_client.c
src/apps/http/httpd.c
""")
# 8. MAKEFSDATA HTTP server host utility
lwipmakefsdata_SRCS = Split("""
src/apps/http/makefsdata/makefsdata.c
""")
# 9. IPERF server
lwipiperf_SRCS = Split("""
src/apps/lwiperf/lwiperf.c
""")
# 10. SMTP client
lwipsmtp_SRCS = Split("""
src/apps/smtp/smtp.c
""")
# 11. SNTP client
lwipsntp_SRCS = Split("""
src/apps/sntp/sntp.c
""")
# 12. MDNS responder
lwipmdns_SRCS = Split("""
src/apps/mdns/mdns.c
""")
# 13. NetBIOS name server
lwipnetbios_SRCS = Split("""
src/apps/netbiosns/netbiosns.c
""")
# 14. TFTP server files
lwiptftp_SRCS = Split("""
src/apps/tftp/tftp_server.c
src/apps/tftp/tftp_port.c
""")
# 15. MQTT client files
lwipmqtt_SRCS = Split("""
src/apps/mqtt/mqtt.c
""")
# 16. ARM MBEDTLS related files of lwIP rep
lwipmbedtls_SRCS = Split("""
src/apps/altcp_tls/altcp_tls_mbedtls.c
src/apps/altcp_tls/altcp_tls_mbedtls_mem.c
src/apps/snmp/snmpv3_mbedtls.c
""")
# 17. ping
lwipping_SRCS = Split("""
src/apps/ping/ping.c
""")
src = Split("""
src/arch/sys_arch.c
""")
src += lwipcore_SRCS # rm mem.c
src += lwipcore_altcp_SRCS
src += lwipapi_SRCS
src += lwipnetif_SRCS
src += lwipsixlowpan_SRCS
src += lwipcore4_SRCS
path = [cwd + '/src',
cwd + '/src/include',
cwd + '/src/arch/include',
cwd + '/src/include/netif']
if not GetDepend('RT_USING_SAL'):
path += [cwd + '/src/include/compat/posix']
if GetDepend(['RT_LWIP_SNMP']):
src += lwipsnmp_SRCS
path += [cwd + '/src/apps/snmp']
if GetDepend(['RT_LWIP_PPP']):
src += lwipppp_SRCS
path += [cwd + '/src/netif/ppp']
if GetDepend(['RT_USING_LWIP_IPV6']):
src += lwipcore6_SRCS
if GetDepend(['RT_LWIP_USING_PING']):
src += lwipping_SRCS
group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'RT_USING_LWIP210'], CPPPATH = path)
Return('group')
此差异已折叠。
doxygen/ - Configuration files and scripts to create the lwIP doxygen source
documentation (found at http://www.nongnu.org/lwip/)
savannah.txt - How to obtain the current development source code.
contrib.txt - How to contribute to lwIP as a developer.
rawapi.txt - The documentation for the core API of lwIP.
Also provides an overview about the other APIs and multithreading.
sys_arch.txt - The documentation for a system abstraction layer of lwIP.
ppp.txt - Documentation of the PPP interface for lwIP.
此差异已折叠。
此差异已折叠。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirection</title>
<meta http-equiv="refresh" content="0; url=html/index.html" />
</head>
<body>
<a href="html/index.html">index.html</a>
</body>
</html>
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册