ntp: allow wildcard in hwtimestamp directive

If "*" was specified, use getifaddrs() to get a list of all interfaces,
and try to enable HW timestamping on all of them.
This commit is contained in:
Miroslav Lichvar
2016-12-14 12:15:32 +01:00
parent 88c31b3785
commit db312a5ff6
2 changed files with 55 additions and 3 deletions

View File

@@ -1800,6 +1800,9 @@ interfaces. The timestamping used in measurements is indicated in the
_measurements.log_ file if enabled by the <<log,*log measurements*>> directive,
and the <<chronyc.adoc#ntpdata,*ntpdata*>> report in *chronyc*.
+
If the specified interface is _*_, *chronyd* will try to enable HW timestamping
on all available interfaces.
+
An example of the directive is:
+
----