nuttx/Documentation/components/net
Zhe Weng a1a09f271f net/nat: Support Symmetric NAT
The symmetric NAT limits one external port to be used with only one peer ip:port.

Note:
1. To avoid using too much #ifdef, we're always passing peer_ip and peer_port as arguments, but won't use them under full cone NAT, let the compiler optimize them.
2. We need to find port binding without peer ip:port, so don't add peer ip:port into hash key.
3. Symmetric NAT needs to *select another external port if a port is used by any other NAT entry*, this behavior is exactly same as Full Cone NAT, so we don't need to change anything related to `ipv4_nat_port_inuse`.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-04-07 23:57:55 +08:00
..
index.rst Documentation: Add docs for lower-half of netdriver 2024-04-07 10:17:13 -03:00
nat.rst net/nat: Support Symmetric NAT 2024-04-07 23:57:55 +08:00
netdev.rst Documentation: Add docs for lower-half of netdriver 2024-04-07 10:17:13 -03:00
netdriver.rst Documentation: Add docs for lower-half of netdriver 2024-04-07 10:17:13 -03:00
netguardsize.rst Documentation: migrate "CONFIG_NET_GUARDSIZE" from wiki 2023-11-06 18:42:17 -03:00
pkt.rst Documentation: Add documentation for packet sockets 2024-02-23 08:32:49 +01:00
sixlowpan.rst
slip.rst Documentation: migrate "SLIP Configuration" from wiki 2023-11-06 18:42:17 -03:00
socketcan.rst Documentation: move socketcan.rst to net/ 2023-10-27 13:21:40 -03:00
wqueuedeadlocks.rst Documentation: Fix various typos 2023-11-23 16:38:19 -08:00