EtherGuard-VPN/tun
Simon Rozman fdba6c183a wintun: make remaining HWID comparisons case insensitive
c85e4a410f introduced preliminary HWID
checking to speed up Wintun adapter enumeration. However, all HWID are
case insensitive by Windows convention.

Furthermore, a device might have multiple HWIDs. When DevInfo's
DeviceRegistryProperty(SPDRP_HARDWAREID) method returns []string, all
strings returned should be checked against given hardware ID.

This issue was discovered when researching Wintun and wireguard-go on
Windows 10 ARM64. The Wintun adapter was created using devcon.exe
utility with "wintun" hardware ID, causing wireguard-go fail to
enumerate the adapter properly.

Signed-off-by: Simon Rozman <simon@rozman.si>
2020-05-02 01:50:47 -06:00
..
tuntest tuntest: split out testing package 2020-05-02 01:46:42 -06:00
wintun wintun: make remaining HWID comparisons case insensitive 2020-05-02 01:50:47 -06:00
operateonfd.go receive: implement flush semantics 2019-03-21 14:45:41 -06:00
tun_darwin.go tun: darwin: ignore ENOMEM errors 2020-01-15 13:39:37 -05:00
tun_freebsd.go tun: remove TUN prefix from types to reduce stutter elsewhere 2019-06-14 18:35:57 +02:00
tun_linux.go tun: return a better error message if /dev/net/tun doesn't exist 2020-05-02 01:50:47 -06:00
tun_openbsd.go tun: openbsd: check for interface already being up 2019-09-07 00:13:23 -05:00
tun_windows.go tun: windows: serialize write calls 2020-01-07 11:40:45 -05:00
tun.go tun: remove TUN prefix from types to reduce stutter elsewhere 2019-06-14 18:35:57 +02:00