Commit 0cd4f99a authored by Maciej Lipinski's avatar Maciej Lipinski

bmc: bugfix, added distinguishing between master port on GM and on BC for master-only ports

master port on GM should copy DefaultDS.clockQuality (e.g. clockClass)
to ParentDS.grandmaster.clockQuality so that it is send out in Announce
messages. BC should not do that, as it copies clockQuality received
on the slave port into the ParentDS.grandmaster.ClockQuality and sends
out on its master ports this info.
parent 480143ae
......@@ -246,7 +246,9 @@ passive:
return PPS_PASSIVE;
master:
m1(ppi);
//TODO: consider whether a smarter solution is needed for non-simple cases
if(cmpres < 0) // it is M1 and M2, see IEEE1588-2008, page 87, in short switch is a GM
m1(ppi); //GM
pp_diag(ppi, bmc, 1,"%s: master\n", __func__);
return PPS_MASTER;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment