XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
ntp_packet_t Struct Reference

Public Attributes

uint8_t mode: 3
 
uint8_t vn: 3
 
uint8_t li: 2
 
uint8_t stratum
 
uint8_t poll
 
int8_t precision
 
uint32_t root_delay
 
uint32_t root_dispersion
 
uint32_t reference_id
 
uint32_t reference_ts_sec
 
uint32_t referenece_ts_frac
 
uint32_t origin_ts_sec
 
uint32_t origin_ts_frac
 
uint32_t receive_ts_sec
 
uint32_t receive_ts_frac
 
uint32_t transmit_ts_sec
 
uint32_t transmit_ts_frac
 
uint32_t reference_ts_frac
 

Detailed Description

BSD 2-Clause License

Copyright (c) 2026, Xeneva Contributors All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ntpd – minimal background SNTPv4 client. Syncs the kernel walltime (_KeSetWalltime) on boot and periodically thereafter, since the PL031 RTC is never enabled and walltime otherwise sits at unix epoch 0.

Member Data Documentation

◆ li

uint8_t ntp_packet_t::li

◆ mode

uint8_t ntp_packet_t::mode

◆ origin_ts_frac

uint32_t ntp_packet_t::origin_ts_frac

◆ origin_ts_sec

uint32_t ntp_packet_t::origin_ts_sec

◆ poll

uint8_t ntp_packet_t::poll

◆ precision

int8_t ntp_packet_t::precision

◆ receive_ts_frac

uint32_t ntp_packet_t::receive_ts_frac

◆ receive_ts_sec

uint32_t ntp_packet_t::receive_ts_sec

◆ reference_id

uint32_t ntp_packet_t::reference_id

◆ reference_ts_frac

uint32_t ntp_packet_t::reference_ts_frac

◆ reference_ts_sec

uint32_t ntp_packet_t::reference_ts_sec

◆ referenece_ts_frac

uint32_t ntp_packet_t::referenece_ts_frac

◆ root_delay

uint32_t ntp_packet_t::root_delay

◆ root_dispersion

uint32_t ntp_packet_t::root_dispersion

◆ stratum

uint8_t ntp_packet_t::stratum

◆ transmit_ts_frac

uint32_t ntp_packet_t::transmit_ts_frac

◆ transmit_ts_sec

uint32_t ntp_packet_t::transmit_ts_sec

◆ vn

uint8_t ntp_packet_t::vn

The documentation for this struct was generated from the following files: