21#ifndef PROTOCORE_NTP_SERVER_H
22#define PROTOCORE_NTP_SERVER_H
26#if PROTOCORE_ENABLE_NTP_SERVER
45 uint32_t protocore_ntp_frac;
48} NtpServerBuildResponseArgs;
86 NtpServerBuildResponseArgs build_response_args;
87 NtpServerBeginArgs begin_args;
93extern NtpServerVars NtpServerV;
98 void (*
const build_response)(uint8_t *work);
99 void (*
const begin)(uint8_t *work);
104void protocore_ntp_server_build_response(uint8_t *work);
105void protocore_ntp_server_begin(uint8_t *work);
111static const NtpServerNs NtpServer __attribute__((unused)) = {
112 .build_response = protocore_ntp_server_build_response,
113 .begin = protocore_ntp_server_begin,
125uint8_t *protocore_ntp_server_span(
void);
The NTP packet on the wire (RFC 5905 sec 7.3, Figure 8), shared by the client and server.
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS