mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 05:57:16 +00:00
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> |
||
|---|---|---|
| .. | ||
| arch | ||
| audio | ||
| drivers | ||
| filesystem | ||
| libs | ||
| mm | ||
| net | ||
| nxgraphics | ||
| tools | ||
| binfmt.rst | ||
| boards.rst | ||
| cmake.rst | ||
| crypto.rst | ||
| index.rst | ||
| nxflat.rst | ||
| openamp.rst | ||
| paging.rst | ||
| syscall.rst | ||
| video.rst | ||
| wireless.rst | ||