aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/netinet/libalias/util.h
Commit message (Collapse)AuthorAgeFilesLines
* libalias: Add support for EIM NATDamjan Jovanovic2024-12-051-1/+1
| | | | | | | | | | | | | | Add support for endpoint-independent mapping ("full cone NAT") in Libalias's UDP NAT. This conforms to RFC 4787 requirements 1 and 3. All UDP packets sent out from a particular internal address:port leave via the same NAT address:port, regardless of their destination. Add some libalias tests and supporting defines. Reviewed by: igoro, thj Differential Revision: https://reviews.freebsd.org/D46689D
* tests/libalias: PortrangeLutz Donnerhacke2021-12-271-2/+2
| | | | | | | | | | | | | Test ranges of allowed ports for aliasing. - Explicit default like ipfw(8) is doing - Regular range - Exhausting a very small range - Recovery Includes a fix of an utility macro, which was not used before. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D31012
* tests/libalias: Make inline functions static inlineDimitry Andric2021-12-201-2/+2
| | | | | | | | In C, plain inline functions should never be used: they should be declared either static inline or extern inline. In this case, they are clearly meant to be static inline. MFC after: 3 days
* tests/libalias: Factor out common primitivesLutz Donnerhacke2021-05-261-1/+76
| | | | | | | | Rework the tests to check the correct layer in a single test. Factor out tests for reuse in other modules. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30412
* tests/libalias: Add missing copyright statementsLutz Donnerhacke2021-05-241-0/+33
|
* test/libalias: Tests for outgoing NATLutz Donnerhacke2021-05-211-0/+29
Testing LibAliasOut functionality. This concentrates the typical use case of initiating data transfers from the inside. Provide a exhaustive test for the data structure in order to check for performance improvements. Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30335