44 #if 0 && defined( _USE_PACK ) // use default alignment 45 #pragma pack( 1 ) // set byte alignment 46 #define _USING_BYTE_ALIGNMENT 95 #define LEAP_NOWARNING 0x0 96 #define LEAP_ADDSECOND 0x1 97 #define LEAP_DELSECOND 0x2 98 #define LEAP_NOTINSYNC 0x3 106 #define MAX_SHM_REFCLOCKS 4 112 #define MAX_SHM_UNIT_OFFSET 128 118 #define NTPD_BASE 0x4e545030 139 #if defined( _USING_BYTE_ALIGNMENT ) 140 #pragma pack() // set default alignment 141 #undef _USING_BYTE_ALIGNMENT
unsigned clockTimeStampNSec
time_t receiveTimeStampSec
unsigned receiveTimeStampNSec
struct shmTime * getShmTime(int unit)
int leap
see NTP Leap Bits
Structure of NTP's shared memory segment.
int ntpshm_init(struct shmTime **shmTime, int n_units, int n_unit0)