nuttx-update/net/nat
Zhe Weng 8b211128f1 net/nat: Support param to manipulate src or dest
This commit is for later ICMP error types processing, and does not change any current logic.

Reason for supporting both side of modification is that an inbound ICMP Error MSG may carry original packet like this:

|          IP HDR: SRC = Peer IP,       DST = External IP |
|        ICMP HDR: ERROR MSG                              |
| <Origin> IP HDR: SRC = External IP,   DST = Peer IP     |
| <Origin> L4 HDR: SRC = External Port, DST = Peer Port   |

So we need to support inbound translation (External -> Local) on SRC or DST of each header.

And so do the outbound direction.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-01 22:45:22 +08:00
..
ipv4_nat.c net/nat: Support param to manipulate src or dest 2022-12-01 22:45:22 +08:00
ipv4_nat_entry.c net/nat: Add UDP support 2022-11-11 14:36:55 +08:00
Kconfig net/nat: Add UDP support 2022-11-11 14:36:55 +08:00
Make.defs net: add basic NAT workflow 2022-11-11 14:36:55 +08:00
nat.h net: select NAT external port by tcp_selectport for TCP 2022-11-11 14:36:55 +08:00