github.com/TeaOSLab/EdgeNode@v1.3.8/internal/utils/clock/ntp_packet.go (about)

     1  // Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
     2  
     3  package clock
     4  
     5  type NTPPacket struct {
     6  	Settings       uint8  // leap yr indicator, ver number, and mode
     7  	Stratum        uint8  // stratum of local clock
     8  	Poll           int8   // poll exponent
     9  	Precision      int8   // precision exponent
    10  	RootDelay      uint32 // root delay
    11  	RootDispersion uint32 // root dispersion
    12  	ReferenceID    uint32 // reference id
    13  	RefTimeSec     uint32 // reference timestamp sec
    14  	RefTimeFrac    uint32 // reference timestamp fractional
    15  	OrigTimeSec    uint32 // origin time secs
    16  	OrigTimeFrac   uint32 // origin time fractional
    17  	RxTimeSec      uint32 // receive time secs
    18  	RxTimeFrac     uint32 // receive time frac
    19  	TxTimeSec      uint32 // transmit time secs
    20  	TxTimeFrac     uint32 // transmit time frac
    21  }