-
Notifications
You must be signed in to change notification settings - Fork 4
/
default.cfg
166 lines (132 loc) · 5.81 KB
/
default.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#
# Default configuration for sfptpd
#
#
# Generic Configuration
#
# Specify the PTP Synchronization Module. Can also be specified on the command
# line using the -m option.
sync_mode ptp
# Specify the interface to use. Can also be specified on the command line using
# the -i option.
interface eth0
# Specify whether messages are sent to the syslog, stderr or to a file. By default
# messages are sent to stderr.
message_log syslog
# Specify whether stats logging is enabled and whether stats are sent to stdout
# or to a file
stats_log off
# Configure sfptpd to run as a daemon
daemon
# whether to use a lock file to stop multiple simultaneous instances of the
# daemon. Enabled by default.
# lock off
# Specify how the clocks are controlled. By default clocks are stepped and
# slewed as necessary. Possible values are:
# slew-and-step Allow clock stepping as required
# step-at-startup Only allow the clock to be stepped at startup
# no-step Never step the clock
# no-adjust Do not make any adjustment to the clocks
# step-forward Only step the clock forward
# clock_control slew-and-step
# Specifies whether to use saved clock frequency corrections when disciplining
# clocks. Enabled by default.
# persistent_clock_correction on
# Specifies set of interfaces on which general receive packet timestamping should
# be enabled. Specify by interface name or MAC address or use * to enable receive
# timestamping on all interfaces that support it.
# timestamping_interfaces 00:0f:53:01:7b:fc eth33 *
# Specifies whether to disable timestamping on exit. This affects all interfaces
# specified with timestamping_interfaces as well as the interface selected for PTP.
# The default setting is on.
# timestamping_disable_on_exit on
# Specifies the trace level if the application has been built with trace enabled.
# Default is 0, no trace.
# trace_level 0
#
# PTP Configuration
#
# Specify PTP Slave mode
ptp_mode slave
# Specify PTP stats logging level. Generally not needed, recommend stats_log
# in preference.
# ptp_stats off
# Enable dump of each received PTP packet in detail - produces lots of output!
# ptp_pkt_dump
# Enable logging of PPS measurements and set the PPS propagtion delay
# ptp_pps_log
# pps_delay 0
# Specify threshold in nanoseconds for master-to-slave and slave-to-master
# delay measurements above which measurements are discarded.
# ptp_delay_discard_threshold 1000000
# TX and RX transmission latencies in nanoseconds - use to correct for network
# asymmetry.
ptp_tx_latency 0
ptp_rx_latency 0
# Specify the PTP network mode - conventional multicast or hybrid
ptp_network_mode hybrid
# TTL value. Default is 64.
# ptp_ttl 64
# Configures how PTP handles the UTC offset valid flag. The specification is
# ambigious in its description of the meaning of the UTC offset valid flag
# and this has resulted in varying different implementations. In most
# implementations, if the UTC offset valid flag is not set then the UTC offset
# is not used but in others, the UTC offset valid is an indcation that the
# master is completely confident that the UTC offset is correct. Various
# options are supported:
# default If UTCV is set use the UTC offset, otherwise do not use it
# ignore Do not used the UTCV flag - always apply the indicated UTC offset
# prefer Prefer GMs that have UTCV flag set above those that don't
# require Do not accept GMs that do not set UTCV
# ptp_utc_valid_handling default
# Use to modify the PTP domain in the range 0..255. Default is 0.
# ptp_domain 0
# Configure PTP management message support. Disabled by default. Possible
# values are:
# disabled Management messages disabled
# read-only Only requests to read information (GET) will be accepted
# ptp_mgmt_msgs disabled
# Access Control Lists
# This feature restricts the set of network addresses from which PTP will listen
# to timing and management messages. The control uses a permit and deny list
# and the option to specify the order in which the lists are evaluated. There are
# separate controls for timing and management messages.
# Each list should be a series of network address in the format a.b.c.d/x where
# a.b.c.d specifies the subnet and x the mask - to specify a single IP address
# a mask of 32 should be specified.
# When enabled, each time that a PTP message is received, the source IP address
# of the incoming message is matched against the permit and deny lists and the
# message is allowed or discarded accordingly.
# The network addresses in each list should be separated with spaces or commas e.g.
# 192.168.1.0/24 192.168.4.0/24 172.10.11.1/32 or
# 192.168.1.0/24,192.168.4.0/24,172.10.11.1/32
#
# ptp_timing_acl_permit 172.16.128.48/32 172.16.128.47/32
# ptp_timing_acl_deny 172.16.128.0/21
# ptp_timing_acl_order permit-deny
#
# ptp_mgmt_acl_permit 10.10.1.1/32 10.12.1.0/24
# ptp_mgmt_acl_deny 172.0.0.0/8
# ptp_mgmt_acl_order deny-permit
# The Announce receipt timeout in multiples of the announce interval.
# ptp_announce_timeout 6
# The Sync Packet receipt timeout in multiples of the sync packet interval.
# ptp_sync_pkt_timeout 6
# The Delay Request in interval in 2^number seconds. If specified for a
# PTP slave, this overrides the value communicated to the slave from the
# master.
# ptp_delayreq_interval 0
# The Delay Response receipt timeout 2^number seconds. Default is -2 (250ms).
# ptp_delayresp_timeout -2
# The maximum number of foreign master records a node is enable to store
# simultaneously.
# ptp_max_foreign_records 16
# Specifies whether to use hardware filtering of received PTP packets against
# the parent UUID. Default is on.
# ptp_uuid_filtering on
# Specifies whether to use hardware filtering of received PTP packets against
# the selected PTP domain number. Default is on.
# ptp_domain_filtering on
# Set PTPD debug message level. Defaults to 0 (off).
# ptp_trace 0
# fin