Richard Cochran
1080826d6c
config: convert 'domainNumber' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
9d929fe424
config: convert 'offsetScaledLogVariance' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
4e27856c8b
config: convert 'clockAccuracy' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
a71ecc2816
config: convert 'clockClass' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
0c9d54d3ff
config: convert 'priority1' and 'priority2' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
ea574c7e4f
config: convert 'slaveOnly' and 'twoStepFlag' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
6fa42d3491
config: convert 'udp6_scope' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
bbd8d62bec
config: convert the fault interval options to the new scheme.
...
This conversion is not straightforward due to the fact that these options
can take a value of "ASAP" or a number. We check for the special ASAP
case in a helper function and leave the numbers to the generic code.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
76f8d5eb48
config: convert 'timeSource' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
5277396b3a
config: convert 'sanity_freq_limit' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
0aff268a4e
config: convert 'kernel_leap' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
f2da3cc484
config: convert 'summary_interval' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
2816133b5e
config: convert 'gmCapable' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
5eeea13652
config: convert 'free_running' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
38c891b2c8
config: clock, port: convert 'boundary_clock_jbod' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
eaa70f165f
config: port: convert 'delay_filter_length' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
83e26ec68b
config: port: convert 'ingressLatency' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
a19318b413
config: port: convert 'egressLatency' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
7895466de1
config: port: convert 'neighborPropDelayThresh' to new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
ffa7d49df6
config: clock, port: convert 'freq_est_interval' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
becc6262cc
config: port: convert 'follow_up_info' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
e1dcf8ea11
config: port: convert 'path_trace_enabled' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
54f45063df
port: change 'announce_span' into a macro.
...
This probably should not have been a variable in the first place.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
8efb623f12
config: prot: convert 'transportSpecific' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
fffb6a53bd
config: port: convert 'syncReceiptTimeout' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
35227f2d1f
config: port: convert 'announceReceiptTimeout' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
639ce56fa0
config: port: convert 'logMinPdelayReqInterval' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
0578e321fb
config: port: convert 'logMinDelayReqInterval' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
769a8d3fa6
config: port: convert 'logSyncInterval' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
8026663c43
config: port: convert 'logAnnounceInterval' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
4c9c447429
config: convert 'ntpshm_segment' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
177a7104d5
config: convert 'pi_integral_norm_max' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
85c358ebe0
config: convert 'pi_integral_exponent' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
7533336234
config: convert 'pi_integral_scale' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
b57840cef9
config: convert 'pi_proportional_norm_max' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
d48c8ce8a5
config: convert 'pi_proportional_exponent' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
94048a2947
config: convert 'pi_proportional_scale' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
07b229907d
config: convert 'pi_integral_const' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
25c903b0d2
config: convert 'pi_proportional_const' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
a7db9bad37
config: convert 'verbose' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
f5f77b182c
config: convert 'use_syslog' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
caaf72c5ec
config: convert 'logging_level' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
e8a2956ce0
config: convert the 'max_frequency' option to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
4f649b1ec4
config: convert the 'first_step_threshold' option to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
df578135d3
config: convert the 'step_threshold' option to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
a4329f7873
config: convert the 'check_fup_sync' option to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
42dda4d2b7
config: convert 'tx_timestamp_timeout' to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
85bbf9d919
config: convert the 'assume_two_step' option to the new scheme.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:45 +02:00
Richard Cochran
e7dbc068f6
config: introduce a new API for reading configuration settings.
...
This patch introduces generic code for adding and parsing new options.
The public 'get' methods return option values directly. Although the
API is easy to use, it does not provide error checking in case the
option does not exist or if there is a type mismatch.
Therefore the code performs a BIST to ensure that the options are
properly populated. In addition, the code terminates the program in
case of missing options or type mismatches. This heavy handed
approach is meant to catch errors during development and should never
trigger during normal usage.
As a first element, we include an option for specifying the UDP TTL.
Users are required to call 'config_init', and so this patch add that into
all three programs, ptp4l, phc2sys and pmc.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-23 21:09:19 +02:00
Richard Cochran
1579b7893b
clock: store the configuration in the clock data structure.
...
This will help us to simplify the passing of parameters between the main
program. clock, and ports.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2015-08-16 11:20:23 +02:00