forked from nuttx/nuttx-update
23dfdeacab
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> |
||
---|---|---|
.. | ||
ipv4_nat.c | ||
ipv4_nat_entry.c | ||
Kconfig | ||
Make.defs | ||
nat.h |