From a53de06d373d1b8b39e06c264a1c584cf0e35162 Mon Sep 17 00:00:00 2001 From: Andrew Elder Date: Fri, 8 Apr 2016 16:00:12 -0400 Subject: [PATCH] daemons: gPTP, Windows HAL updates so that CMake based build works again. This commit includes a stub for watchNetLink() that needs to be filled in. --- daemons/gptp/windows/daemon_cl/windows_hal.cpp | 5 +++++ daemons/gptp/windows/daemon_cl/windows_hal.hpp | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/daemons/gptp/windows/daemon_cl/windows_hal.cpp b/daemons/gptp/windows/daemon_cl/windows_hal.cpp index e67df540ad..57db71e793 100644 --- a/daemons/gptp/windows/daemon_cl/windows_hal.cpp +++ b/daemons/gptp/windows/daemon_cl/windows_hal.cpp @@ -142,3 +142,8 @@ bool WindowsNamedPipeIPC::update(int64_t ml_phoffset, int64_t ls_phoffset, Frequ return true; } + +void WindowsPCAPNetworkInterface::watchNetLink(IEEE1588Port *pPort) +{ + /* ToDo add link up/down detection, Google MIB_IPADDR_DISCONNECTED */ +} diff --git a/daemons/gptp/windows/daemon_cl/windows_hal.hpp b/daemons/gptp/windows/daemon_cl/windows_hal.hpp index f1a9cebf7e..96fb9a3e61 100644 --- a/daemons/gptp/windows/daemon_cl/windows_hal.hpp +++ b/daemons/gptp/windows/daemon_cl/windows_hal.hpp @@ -105,6 +105,12 @@ class WindowsPCAPNetworkInterface : public OSNetworkInterface { virtual void getLinkLayerAddress( LinkLayerAddress *addr ) { *addr = local_addr; } + + /** + * @brief Watch for netlink changes. + */ + virtual void watchNetLink(IEEE1588Port *pPort); + /** * @brief Gets the offset to the start of data in the Layer 2 Frame * @return ::PACKET_HDR_LENGTH