diff options
author | Vincent Blut <vincent.debian@free.fr> | 2016-06-11 18:45:40 +0200 |
---|---|---|
committer | Vincent Blut <vincent.debian@free.fr> | 2016-06-11 18:45:40 +0200 |
commit | 63d1a0d29c506f0471c32fc804e310d7f8759391 (patch) | |
tree | 144691dd942ba75080716220f76d35984aa87b70 /ntp.h | |
parent | da8fd617a2b9bbcdb8c5f16c25d0ee7eed69dd33 (diff) |
Imported Upstream version 2.4
Diffstat (limited to 'ntp.h')
-rw-r--r-- | ntp.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -53,8 +53,8 @@ typedef uint32_t NTP_int32; #define NTP_MAX_EXTENSIONS_LENGTH 1024 /* The minimum and maximum supported length of MAC */ -#define NTP_MIN_MAC_LENGTH 16 -#define NTP_MAX_MAC_LENGTH MAX_HASH_LENGTH +#define NTP_MIN_MAC_LENGTH (4 + 16) +#define NTP_MAX_MAC_LENGTH (4 + MAX_HASH_LENGTH) /* Type definition for leap bits */ typedef enum { @@ -91,7 +91,7 @@ typedef struct { /* Optional message authentication code (MAC) */ NTP_int32 auth_keyid; - uint8_t auth_data[NTP_MAX_MAC_LENGTH]; + uint8_t auth_data[NTP_MAX_MAC_LENGTH - 4]; } NTP_Packet; #define NTP_NORMAL_PACKET_LENGTH (int)offsetof(NTP_Packet, auth_keyid) |