Skip to content

Stateful NAT: Implement (most of) session manager #613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jun 23, 2025

test(nat): Add some unit tests for stateful NAT

e3501e8
Select commit
Loading
Failed to load commit list.
Merged

Stateful NAT: Implement (most of) session manager #613

test(nat): Add some unit tests for stateful NAT
e3501e8
Select commit
Loading
Failed to load commit list.
DCO-2 / DCO succeeded Jun 23, 2025 in 1s

Check passed!

All commits are signed off, the check passed.

Summary


Sha Message Pass or fail reason
🟢 b360302 feat(net): Add .total_len method to Packet Valid sign-off found
🟢 f2960a7 feat(net): Add IP-independent .next_header() metho... Valid sign-off found
🟢 5fd67d3 refactor(nat): Pass packet to state*_nat() methods... Valid sign-off found
🟢 8da572c feat(nat): Move and implement NatState Valid sign-off found
🟢 5347b4b refactor(nat): Make NatSession a trait Valid sign-off found
🟢 98b6031 feat(nat): Rework NatSessionManager trait Valid sign-off found
🟢 46bb62d feat(nat): Use NextHeader, add constructor for Nat... Valid sign-off found
🟢 5f3580b refactor(nat): Rework NAT logic, make stateful_nat... Valid sign-off found
🟢 b4e2c55 feat(nat): Add metrics collection for stateful NAT Valid sign-off found
🟢 86f7a5f refactor(nat): Do not implement NatIp for IpAddr Valid sign-off found
🟢 0bd87ee feat(nat): Implement tuple extraction Valid sign-off found
🟢 6d50287 feat(nat): Add sessions to Nat; Implement sessions... Valid sign-off found
🟢 392143f feat(nat): Implement port update in stateful NAT Valid sign-off found
🟢 a558089 feat(nat): Implement a dashmap-based NatSession an... Valid sign-off found
🟢 e3501e8 test(nat): Add some unit tests for stateful NAT Valid sign-off found