Commit 1cd184f1 authored by Alessandro Rubini's avatar Alessandro Rubini

msg.c: temporarily force on a few flags

Our frames shouls announce a ptp timescale, and the fact that both
time and frequency are traceable.

That's true in WR installations but not true in general. Unfortunately
the code base we inherited didn't actually manage propagation of the flags,
and although bmc.c::s1() sets the internal time properties according to
the master we enslave to, such information is never used.

This is a temporary hack, and we really must audit all data sets and frames,
beginning with a rewrite of msg.c based on tools/decent_types.h instead
of hardwired byte offsets.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent b203cc96
......@@ -73,6 +73,8 @@ void msg_pack_header(struct pp_instance *ppi, void *buf)
*(UInteger8 *) (buf + 4) = DSDEF(ppi)->domainNumber;
*(UInteger8 *) (buf + 6) = PP_TWO_STEP_FLAG;
/* Temporary hack: set ptp time scale and "traceable" */
*(UInteger8 *) (buf + 7) = 0x38; /* See commit message */
memset((buf + 8), 0, 8);
memcpy((buf + 20), &DSPOR(ppi)->portIdentity.clockIdentity,
......
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