diff options
-rw-r--r-- | daemons/gptp/common/common_port.hpp | 5 | ||||
-rw-r--r-- | daemons/gptp/common/ptp_message.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/daemons/gptp/common/common_port.hpp b/daemons/gptp/common/common_port.hpp index b2735603..636d1a17 100644 --- a/daemons/gptp/common/common_port.hpp +++ b/daemons/gptp/common/common_port.hpp @@ -738,6 +738,11 @@ public: */ void getExtendedError(char *msg); + void SyncIntervalTimeoutExpireCount(int value) + { + fSyncIntervalTimeoutExpireCount = value; + } + /** * @brief Increment IEEE Port counter: * ieee8021AsPortStatRxSyncCount diff --git a/daemons/gptp/common/ptp_message.cpp b/daemons/gptp/common/ptp_message.cpp index f37f666b..17aa0af3 100644 --- a/daemons/gptp/common/ptp_message.cpp +++ b/daemons/gptp/common/ptp_message.cpp @@ -2955,7 +2955,7 @@ void PTPMessageSignalling::processMessage( EtherPort *port ) if (timeSyncInterval == PTPMessageSignalling::sigMsgInterval_Initial) { GPTP_LOG_VERBOSE("PTPMessageSignalling::processMessage timeSyncInterval == sigMsgInterval_Initial"); - port->setInitSyncInterval(); + port->resetInitSyncInterval(); waitTime = ((long long) (pow((double)2, port->getSyncInterval()) * 1000000000.0)); #ifndef APTP |