New +/- syntax in wg(8) allows us to add or remove just a single
allowed-ip rather than forcing replacement or weird tricks to do an
atomic removal. Ensure that it works now that we've added kernel
support for it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
tests for adding an aip that already exists and removing an aip that doesn't exist would be nice.
tests/sys/net/if_wg.sh | ||
---|---|---|
442 | as there are AF-specific branches in the kernel part, we should test both inet and inet6 addresses. |
tests/sys/net/if_wg.sh | ||
---|---|---|
442 | I'm adding a basic IPv6 test, but the parts that branch out for INET6 don't change the semantics of the functionality so I'm not sure I'll go as far as duplicating all of them. |
Comment Actions
Add more tests:
- Basic IPv6 tests
- Removal of an IP that is not assigned at all
- Removal of an IP that is assigned to another peer
- Stealing an IP from another peer
- Adding an IP that's already there