From 85db8e3a9c4c4b1e9fd282d84b73f5bb696080e3 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 12 Sep 2023 14:03:50 +0200 Subject: [PATCH] ntp: assert size of exp_mono_root field --- ntp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntp_core.c b/ntp_core.c index 847932b..d67c152 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -373,6 +373,8 @@ do_size_checks(void) assert(offsetof(NTP_Packet, originate_ts) == 24); assert(offsetof(NTP_Packet, receive_ts) == 32); assert(offsetof(NTP_Packet, transmit_ts) == 40); + + assert(sizeof (NTP_EFExpMonoRoot) == 24); } /* ================================================== */