From d1b0a7e7fabff455a8b1b6cb192d3937968c918a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 9 Sep 2021 20:29:53 +0000 Subject: driver: device: learn about when MTU notifier begins working Signed-off-by: Jason A. Donenfeld --- driver/device.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/driver/device.c b/driver/device.c index 2890e41..c718c91 100644 --- a/driver/device.c +++ b/driver/device.c @@ -296,7 +296,23 @@ IpInterfaceChangeNotification( } } else if (NotificationType == MibParameterNotification) + { *Mtu = Row->NlMtu; + + static BOOLEAN HaveNotified; + if (!HaveNotified) + { + HaveNotified = TRUE; + RTL_OSVERSIONINFOW OsVersionInfo = { .dwOSVersionInfoSize = sizeof(OsVersionInfo) }; + RtlGetVersion(&OsVersionInfo); + LogInfo( + Wg, + "MTU notifier working as expected on %u.%u.%u; please notify team@wireguard.com", + OsVersionInfo.dwMajorVersion, + OsVersionInfo.dwMinorVersion, + OsVersionInfo.dwBuildNumber); + } + } cleanupDeviceListLock: MuReleasePushLockShared(&DeviceListLock); } -- cgit v1.2.3-59-g8ed1b