Skip to content

Commit

Permalink
daemons: gPTP, Windows HAL updates so that CMake based build works ag…
Browse files Browse the repository at this point in the history
…ain.

This commit includes a stub for watchNetLink() that needs to be filled in.
  • Loading branch information
Andrew Elder committed Apr 8, 2016
1 parent f8c8579 commit a53de06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions daemons/gptp/windows/daemon_cl/windows_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
6 changes: 6 additions & 0 deletions daemons/gptp/windows/daemon_cl/windows_hal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a53de06

Please sign in to comment.