]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Improved adapter name generation when no adapter name is specified.
authorMarios Paouris <mspaourh@gmail.com>
Sat, 12 Oct 2024 14:56:34 +0000 (17:56 +0300)
committerMarios Paouris <mspaourh@gmail.com>
Tue, 5 Nov 2024 07:16:50 +0000 (09:16 +0200)
commit15e3bd03fe1f31f2725067c05dabff496c219ab5
tree45e97a6075b14d52c83f48dda19dc917fb89369e
parentf359a42a91fb925f37b2ca4e7157acda9a4794ee
Improved adapter name generation when no adapter name is specified.

Try to find an adapter name that is not already used in the system by
appending a monotonically increasing integer to the hostname that is
used as a default name.

This works around wintun's weird behaviour of renaming existing adapters
without preventing two or more instances of openconnect to connect to
the same VPN host (without explicity specifying an interface name), or
otherwise messing with user's network adapters.

Signed-off-by: Marios Paouris <mspaourh@gmail.com>
tests/Makefile.am
tests/adapter-fallback.c [new file with mode: 0644]
tun-win32.c