Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Fix enable/disable to properly allocate and deallocate tables. Current algorithm is just broken. 2. Introduce eviction policy when table gets full: oldest connection is evicted, instead of new ones getting silently dropped. this results in much better behavior with small tables than before. When TCP connection is dropped, RSTs are sent both ways to inform parties instead of dropping silently. thiw requires additional 8 bytes per entry but is, again, a big improvement for clients in terms of usability. 3. FIxed handling of timestamp wraparound (every ~50 days of uptime). 3. Added ip_portmap_get() to retrieve current port mapping settings. 4. Added ip_napt_get_stats() for some insight into the state of NAT.
- Loading branch information