ntp: make socket resume timeout configurable

In some cases even the new timeout of 1 millisecond is not sufficient to
get all HW TX timestamps. Add a new directive to allow users to
specify longer timeouts.
This commit is contained in:
Miroslav Lichvar
2023-03-09 11:09:33 +01:00
parent ccebec3eb6
commit ab776ed9d8
4 changed files with 42 additions and 4 deletions

1
conf.h
View File

@@ -154,6 +154,7 @@ typedef struct {
} CNF_HwTsInterface;
extern int CNF_GetHwTsInterface(unsigned int index, CNF_HwTsInterface **iface);
extern double CNF_GetHwTsTimeout(void);
extern int CNF_GetPtpPort(void);