ntp: prepare for non-authentication extension fields

Add a new variable to the packet info structure with flags for extension
fields included in received packets and add a new parameter to
transmit_packet() to add the fields to transmitted packets.
This commit is contained in:
Miroslav Lichvar
2021-11-08 16:35:47 +01:00
parent 36356ef033
commit 125d7a5c32
2 changed files with 36 additions and 6 deletions

1
ntp.h
View File

@@ -137,6 +137,7 @@ typedef struct {
NTP_Mode mode;
int ext_fields;
int ext_field_flags;
struct {
NTP_AuthMode mode;