diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-09-09 20:29:53 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-10-25 10:43:15 +0000 |
commit | d1b0a7e7fabff455a8b1b6cb192d3937968c918a (patch) | |
tree | 373c95004decaa7af26e5a32427a2df240b6de6e | |
parent | proj: stop building for arm32 (diff) | |
download | wireguard-nt-jd/mtu-does-it-work.tar.xz wireguard-nt-jd/mtu-does-it-work.zip |
driver: device: learn about when MTU notifier begins workingjd/mtu-does-it-work
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | driver/device.c | 16 |
1 files changed, 16 insertions, 0 deletions
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); } |