mirror of
https://github.com/apache/nuttx.git
synced 2025-12-17 10:16:49 +08:00
net/nat: Add support for ICMP Error Message
Support DEST_UNREACHABLE, TIME_EXCEEDED and PARAMETER_PROBLEM ICMP types in NAT. Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
@@ -5,8 +5,14 @@ Network Address Translation (NAT)
|
||||
NuttX supports full cone NAT logic, which currently supports
|
||||
|
||||
- TCP
|
||||
|
||||
- UDP
|
||||
- ICMP ECHO (REQUEST & REPLY)
|
||||
|
||||
- ICMP
|
||||
|
||||
- ECHO (REQUEST & REPLY)
|
||||
|
||||
- Error Messages (DEST_UNREACHABLE & TIME_EXCEEDED & PARAMETER_PROBLEM)
|
||||
|
||||
Workflow
|
||||
========
|
||||
@@ -161,6 +167,12 @@ Validated on Ubuntu 22.04 x86_64 with NuttX SIM by following steps:
|
||||
# LAN side
|
||||
sudo ip netns exec LAN ping 8.8.8.8
|
||||
|
||||
.. code-block:: shell
|
||||
|
||||
# LAN side
|
||||
sudo ip netns exec LAN traceroute -n 8.8.8.8 # ICMP error msg of UDP
|
||||
sudo ip netns exec LAN traceroute -n -T 8.8.8.8 # ICMP error msg of TCP
|
||||
|
||||
.. code-block:: shell
|
||||
|
||||
# Host side
|
||||
|
||||
Reference in New Issue
Block a user