1
0
Fork 0
forked from nuttx/nuttx-update
local-nuttx-update/net/nat
Zhe Weng 23dfdeacab net/nat: Split out ipv4_nat_in/outbound_internal
Split out ipv4_nat_in/outbound_internal which returns entry instead of error code, for later ICMP error types, does not change any current logic.

Reason: Outer packet doesn't have information of port, so we need to find entry by inner packet, and apply the entry to outer packet.

| Outer Packet: SRC = Peer IP<No Port>, DST = External IP<No Port> |
| Inner Packet: SRC = External IP:Port, DST = Peer IP:Port         |

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-01 22:45:22 +08:00
..
ipv4_nat.c net/nat: Split out ipv4_nat_in/outbound_internal 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