ccrtp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ccrtp-devel] NTP2Timeval function


From: Takegami, Takashi
Subject: [Ccrtp-devel] NTP2Timeval function
Date: Mon, 18 Apr 2005 23:37:30 +0900
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

sir,

  Isn't wrong? the function NTP2Timeval(rtcppkt.cpp, L60)

  NTP timestamp is the passed time from 1900, and Timeval is from 1970.
  (eg. NTP -> Timeval)
   in case NTP=100yr,  then Timeval = 100yr-70yr(OFFSET) = 30yr.

  so, the function NTP2Timeval
  - t.tv_sec = msw + NTP_EPOCH_OFFSET  (wrong)
  + t.tv_sec = msw - NTP_EPOCH_OFFSET

                                                           With regars,

-- 
TAKEGAMI




reply via email to

[Prev in Thread] Current Thread [Next in Thread]