Files
esp-lwip/test/unit/core/test_ip4_route.h
martin-ger 319d4d3c91 napt: Add basic support for NAT by martin-ger
* Cosmetic updates on NAPT functionality implemented by martin-ger
- moved NAPT specific code from ip4.c to ip4_napt.c
- formatting updates to keep the changes easier to review
- updated per C-90 style used for lwip upstream (fixed warning,
renaming, lwip types)
- esp_random() -> LWIP_RAND()
- drop the connection with routing err if failed to add new napt record
- prepared for lwip unit testing

* Add ip4 routing tests
- lwip native ip-forward tests
- napt feature test udp, tcp
- napt feature, test add/release of nat records
Testing configurations: lwip unit tests are executed in the following
three configurations:
- default
- IP_FORWARD=1
- IP_FORWARD=1 & IP_NAPT=1
Note that debugging option ESP_TEST_DEBUG was introduced to enable running only
IP-FORWARD/IP-NAPT tests with verbose output

* Fix checksum of UDP
- According to the UDP protocol, the checksum is optional.
so if the checksum is 0, this meaning the checksum is turn off, and no need to
correct checksum.

* Fix disbale IPv6 and enable NAPT will build error

Co-Authored-By: David Cermak <[email protected]> (4b4d6b28, 754b8d5d)
Co-Authored-By: leo chung <[email protected]> (bb63eed1)
Co-Authored-By: yuanjm <[email protected]> (74cf7f9f)
Ref IDF-4800
2022-03-24 10:20:47 +01:00

9 lines
132 B
C

#ifndef LWIP_HDR_TEST_IP4ROUTE_H
#define LWIP_HDR_TEST_IP4ROUTE_H
#include "../lwip_check.h"
Suite *ip4route_suite(void);
#endif