summaryrefslogtreecommitdiffhomepage
path: root/windows
diff options
context:
space:
mode:
Diffstat (limited to 'windows')
-rw-r--r--windows/winnet/src/winnet/routing/defaultroutemonitor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/windows/winnet/src/winnet/routing/defaultroutemonitor.cpp b/windows/winnet/src/winnet/routing/defaultroutemonitor.cpp
index cd0f7304e2..8e1e2599ad 100644
--- a/windows/winnet/src/winnet/routing/defaultroutemonitor.cpp
+++ b/windows/winnet/src/winnet/routing/defaultroutemonitor.cpp
@@ -32,14 +32,14 @@ DefaultRouteMonitor::DefaultRouteMonitor
{
std::scoped_lock<std::mutex> lock(m_evaluationLock);
- auto status = NotifyRouteChange2(AF_UNSPEC, RouteChangeCallback, this, FALSE, &m_routeNotificationHandle);
+ auto status = NotifyRouteChange2(family, RouteChangeCallback, this, FALSE, &m_routeNotificationHandle);
if (NO_ERROR != status)
{
THROW_WINDOWS_ERROR(status, "Register for route table change notifications");
}
- status = NotifyIpInterfaceChange(AF_UNSPEC, InterfaceChangeCallback, this,
+ status = NotifyIpInterfaceChange(family, InterfaceChangeCallback, this,
FALSE, &m_interfaceNotificationHandle);
if (NO_ERROR != status)
@@ -48,7 +48,7 @@ DefaultRouteMonitor::DefaultRouteMonitor
THROW_WINDOWS_ERROR(status, "Register for network interface change notifications");
}
- status = NotifyUnicastIpAddressChange(AF_UNSPEC, AddressChangeCallback, this,
+ status = NotifyUnicastIpAddressChange(family, AddressChangeCallback, this,
FALSE, &m_addressNotificationHandle);
if (NO_ERROR != status)