ntp: allow TX-only HW timestamping by default

If no rxfilter is specified in the hwtimestamp directive and the NIC
doesn't support the all or ntp filter, enable TX-only HW timestamping
with the none filter.
This commit is contained in:
Miroslav Lichvar
2017-08-23 11:33:37 +02:00
parent 3e93068c43
commit aee42fada8
4 changed files with 42 additions and 25 deletions

7
conf.h
View File

@@ -118,9 +118,10 @@ extern char *CNF_GetHwclockFile(void);
extern int CNF_GetInitSources(void);
extern double CNF_GetInitStepThreshold(void);
#define CNF_HWTS_RXFILTER_NONE 0
#define CNF_HWTS_RXFILTER_NTP 1
#define CNF_HWTS_RXFILTER_ALL 2
#define CNF_HWTS_RXFILTER_ANY 0
#define CNF_HWTS_RXFILTER_NONE 1
#define CNF_HWTS_RXFILTER_NTP 2
#define CNF_HWTS_RXFILTER_ALL 3
typedef struct {
char *name;