grandmaster clock quality in announce msg missing
When WR Switch or SPEC runs in GM or Free-running Master (FM) mode, it
sends Announces with
grandmasterClockClass/ClockAccuracy/ClockVariance etc. = 0
git bisect points to the PPSi commit:
commit 812fe67ce4d77d00551a24fd7e2e35ea7c7d321d
Author: Maciej Lipinski <maciej.lipinski@cern.ch>
Date: Fri Mar 13 19:30:04 2015 +0100
protocol code: bugfix, wrong data was packed to the announce message
instead of GM clockQuality info, the information from Default DS
was sent in announce. Corrected according to Table 25, p129 of PTP
In principle the commit looks reasonable and according to the IEEE
standard. It also works fine for the WRS in Slave mode (i.e. we copy
the clock class of our Master and pass it in announce message to our
slaves). However, when I have a WRS or SPEC in GM or FM mode, it looks
like DSDEF (ppi)->clockQuality is never initialized with proper
value.
Thus it's always 0.