Commit 3707e812 authored by Davide Ciminaghi's avatar Davide Ciminaghi Committed by Alessandro Rubini

compliance, 13.3.2.5: set domain number in all outgoing frames

We're not a transparent clock, so this should be ok.
parent 5217805a
......@@ -48,7 +48,13 @@ static inline int __send_and_log(struct pp_instance *ppi, int msglen,
int msgtype, int chtype)
{
int pdelay_addr = 0;
uint8_t *ptr = ppi->tx_ptp;
/*
* We're not a transparent clock, just set our domain number in all
* outgoing frames
*/
ptr[4] = GDSDEF(GLBS(ppi))->domainNumber;
if (msgtype == PPM_PDELAY_REQ || msgtype == PPM_PDELAY_RESP)
pdelay_addr = 1;
......
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