You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add testRemoveManyIPs to the integration tests to exercise the direct
allowed IP removal capability and run the test suite on all platforms.
$ WGCTRL_INTEGRATION=yesreallydoit go test .
┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓
┃ OPERATING SYSTEM ┃ DRIVER ┃ REMOVE IP SUPPORTED ┃ RESULT ┃
┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━┩
│ FreeBSD 14.2 │ native │ no │ PASS │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ OpenBSD 7.7 │ native │ no │ PASS* │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Windows 11 │ native │ no │ PASS** │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Linux │ native │ no │ PASS │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Linux │ wireguard-go │ no │ PASS │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Linux │ native │ yes │ PASS │
├──────────────────┼──────────────┼─────────────────────┼────────┤
│ Linux │ wireguard-go │ yes │ PASS │
└──────────────────┴──────────────┴─────────────────────┴────────┘
I compiled Linux from the bpf-next/master tree which includes
commit ba3d7b93dbe3 ("wireguard: allowedips: add WGALLOWEDIP_F_REMOVE_ME
flag") and wireguard-go from the head of master which includes commit
256bcbd70d5b ("device: add support for removing allowedips
individually") to test platforms with native support.
On systems where direct IP removal is not supported, I also made sure
that ConfigureDevice returns an error when Remove is used without the
shim.
* OpenBSD skips this test case, since the driver is read only.
** Two assertions fail in Windows due to missing protocol version, but
testRemoveManyIPs passes.
Signed-off-by: Jordan Rife <[email protected]>
0 commit comments