diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-03 12:34:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-03 12:34:19 +0100 |
commit | 8963f7258ebe5889399f77e89d7ebd08f57c0733 (patch) | |
tree | 28ff5b610d1b182d78ca5d2fa5266a3ae418a8a7 /api/adapter.c | |
parent | api: use 'open' name since caller must close handle (diff) | |
download | wintun-8963f7258ebe5889399f77e89d7ebd08f57c0733.tar.xz wintun-8963f7258ebe5889399f77e89d7ebd08f57c0733.zip |
api: remove guid getter
The iphlpapi takes both LUIDs and GUIDs but prefers LUIDs, so exposing
the NET_LUID makes sense. However, we were previously exposing the
configuration GUID, rather than the net GUID, which is confusing, so
just make it all go away.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/adapter.c')
-rw-r--r-- | api/adapter.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/api/adapter.c b/api/adapter.c index 3db3174..bab0502 100644 --- a/api/adapter.c +++ b/api/adapter.c @@ -767,12 +767,6 @@ cleanupDeviceRegKey: } void WINAPI -WintunGetAdapterGUID(_In_ const WINTUN_ADAPTER *Adapter, _Out_ GUID *Guid) -{ - memcpy(Guid, &Adapter->CfgInstanceID, sizeof(GUID)); -} - -void WINAPI WintunGetAdapterLUID(_In_ const WINTUN_ADAPTER *Adapter, _Out_ NET_LUID *Luid) { Luid->Info.Reserved = 0; |