ark::time::NtpWirePacket

Defined in header “ark/time/ntp_packet.hh”.


Represents an NTP packet as we’d see it on the wire.

Variables

  • uint8_t mode
    Mode (3 for client, 4 for server, etc).

  • uint8_t version
    Version of the protocol (‘3’ for NTPv3).

  • uint8_t leap_indicator
    Warning if a leap second is impending.

  • uint8_t stratum= 0
    Stratum. Leave at 0 for undefined.

  • uint8_t poll_interval= 0
    Indicates the interval we will poll at.

  • uint8_t precision= 0
    Precision.

  • uint32_t root_delay= 0
    Total delay to the primary reference source, if any.

  • uint32_t root_dispersion= 0
    Maximum error to the primary reference source.

  • uint32_t reference_identifier= 0
    The identifier of the reference clock, basically a ASCII string.

  • NtpWireTimestamp reference_timestamp{}
    Local time at which the local clock was last set or corrected.

  • NtpWireTimestamp originate_timestamp{}
    The local time at which the request departed the client.

  • NtpWireTimestamp receive_timestamp{}
    The local time at which the request arrived at the service host.

  • NtpWireTimestamp transmit_timestamp{}
    The local time at which the reply departed the service host.