mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-12 16:02:57 +00:00
4e822436fc
The NAT feature of the NIC router used to prefer re-using source ports that have been freed recently. From an external server's perspective, if a client dies and restarts, chances are high that the new connect arrives with the same source-IP/source-port as the old connection. The server has to forcefully reset the connection. If that happens a lot, the server may even start to ignore further connections from this IP/port combination for a while as a mitigation. This patch adds a continuous counter feature that makes sure that every new port allocation will increment and result in a port that hasn't been used for a long time. The NAT feature of the nic_router is now more in line with RFC 6056 chapter 4. Ref #4086 |
||
---|---|---|
.. | ||
app | ||
drivers | ||
init | ||
lib | ||
server | ||
test |