wengzhe opened a new pull request, #12085: URL: https://github.com/apache/nuttx/pull/12085
## Summary NAT: Support "Symmetric NAT" besides current "Full Cone 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 the same as Full Cone NAT, so we don't need to change anything related to `ipv4_nat_port_inuse`. ## Impact net/nat module, with Konfig controlled. ## Testing Manually with methods in nat.rst -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
