Lightweight TCP/IP stack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Erik Ekman c385f31076 Remove @ref to fix doxygen build 2 months ago
.vscode VS code workspace: add unit tests 1 year ago
contrib Rename IP and Ethernet equality checkers from _cmp to _eq 2 months ago
doc Fix-more-typos-using-codespell 7 months ago
src Remove @ref to fix doxygen build 2 months ago
test Rename IP and Ethernet equality checkers from _cmp to _eq 2 months ago
.gitattributes Added .gitattributes to normalize CRLF 6 years ago
.gitignore fuzz: add more fuzz tests 7 months ago
.travis.yml Try to get ninja-build running on Travis 1 year ago
BUILDING Improve build system documentation 1 year ago
CHANGELOG sync CHANGELOG after releasing 2.1.1 1 year ago
CMakeLists.txt List supported build types in top-level CMakeLists.txt 1 year ago
COPYING Re-added without vendor tag. 18 years ago
FEATURES Add ACD to several documents 1 year ago
FILES Add contrib subdir to FILES 1 year ago
README Restore travis-ci link in README 3 months ago
UPGRADING Rename IP and Ethernet equality checkers from _cmp to _eq 2 months ago codespell: change file names, add possibility to write changes 7 months ago codespell: change file names, add possibility to write changes 7 months ago More cleanups to - run all test even if some fail 1 year ago



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.


* 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), ACD (Address Conflict Detection)
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)


* 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)


lwIP is freely available under a BSD license.


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 'src' directory and
contributions (such as platform ports and applications) are in
the 'contrib' directory.

See doc/savannah.txt for details on Git server access for users and

The current Git tree is web-browsable:

Submit patches and bugs via the lwIP project page:

Continuous integration builds (GCC, clang):


Self documentation of the source code is regularly extracted from the current
Git sources and is available from this web page:

Also, there are mailing lists you can subscribe at
plus searchable archives:

There is a wiki about lwIP at
You might get questions answered there, but unfortunately, it is not as
well maintained as it should be.

lwIP was originally written by Adam Dunkels:

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 <[email protected]>
Leon Woestenberg <[email protected]>