Add a configuration option to control the follow up info TLV.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
9f72080260
commit
00b232477d
4
config.c
4
config.c
|
@ -95,6 +95,10 @@ static void scan_line(char *s, struct config *cfg)
|
||||||
|
|
||||||
pod->path_trace_enabled = val ? 1 : 0;
|
pod->path_trace_enabled = val ? 1 : 0;
|
||||||
|
|
||||||
|
} else if (1 == sscanf(s, " follow_up_info %u", &val)) {
|
||||||
|
|
||||||
|
pod->follow_up_info = val ? 1 : 0;
|
||||||
|
|
||||||
} else if (1 == sscanf(s, " assume_two_step %u", &val)) {
|
} else if (1 == sscanf(s, " assume_two_step %u", &val)) {
|
||||||
|
|
||||||
*cfg->assume_two_step = val ? 1 : 0;
|
*cfg->assume_two_step = val ? 1 : 0;
|
||||||
|
|
|
@ -21,6 +21,7 @@ announceReceiptTimeout 3
|
||||||
# Run time options
|
# Run time options
|
||||||
#
|
#
|
||||||
path_trace_enabled 0
|
path_trace_enabled 0
|
||||||
|
follow_up_info 0
|
||||||
tx_timestamp_retries 2
|
tx_timestamp_retries 2
|
||||||
rx_timestamp_l2only 0
|
rx_timestamp_l2only 0
|
||||||
pi_proportional_const 0.0
|
pi_proportional_const 0.0
|
||||||
|
|
1
ds.h
1
ds.h
|
@ -86,6 +86,7 @@ struct port_defaults {
|
||||||
UInteger8 announceReceiptTimeout;
|
UInteger8 announceReceiptTimeout;
|
||||||
UInteger8 transportSpecific;
|
UInteger8 transportSpecific;
|
||||||
int path_trace_enabled;
|
int path_trace_enabled;
|
||||||
|
int follow_up_info;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
1
gPTP.cfg
1
gPTP.cfg
|
@ -21,6 +21,7 @@ announceReceiptTimeout 3
|
||||||
#
|
#
|
||||||
assume_two_step 1
|
assume_two_step 1
|
||||||
path_trace_enabled 1
|
path_trace_enabled 1
|
||||||
|
follow_up_info 1
|
||||||
tx_timestamp_retries 2
|
tx_timestamp_retries 2
|
||||||
rx_timestamp_l2only 1
|
rx_timestamp_l2only 1
|
||||||
pi_proportional_const 0.0
|
pi_proportional_const 0.0
|
||||||
|
|
1
ptp4l.c
1
ptp4l.c
|
@ -195,6 +195,7 @@ int main(int argc, char *argv[])
|
||||||
pod.announceReceiptTimeout = 3;
|
pod.announceReceiptTimeout = 3;
|
||||||
pod.transportSpecific = 0;
|
pod.transportSpecific = 0;
|
||||||
pod.path_trace_enabled = 0;
|
pod.path_trace_enabled = 0;
|
||||||
|
pod.follow_up_info = 0;
|
||||||
|
|
||||||
if (generate_clock_identity(&ds.clockIdentity, iface[0].name)) {
|
if (generate_clock_identity(&ds.clockIdentity, iface[0].name)) {
|
||||||
fprintf(stderr, "failed to generate a clock identity\n");
|
fprintf(stderr, "failed to generate a clock identity\n");
|
||||||
|
|
Loading…
Reference in New Issue