Commit ca86ffd2 authored by Davide Ciminaghi's avatar Davide Ciminaghi Committed by Alessandro Rubini

compliance, 11.4.3: force responseOriginTimestamp to zero for p2p 1-step

parent 6a789557
...@@ -218,8 +218,14 @@ int st_com_peer_handle_pres(struct pp_instance *ppi, unsigned char *buf, ...@@ -218,8 +218,14 @@ int st_com_peer_handle_pres(struct pp_instance *ppi, unsigned char *buf,
ppi->t6_cf = phase_to_cf_units(ppi->last_rcv_time.phase); ppi->t6_cf = phase_to_cf_units(ppi->last_rcv_time.phase);
if ((hdr->flagField[0] & PP_TWO_STEP_FLAG) != 0) if ((hdr->flagField[0] & PP_TWO_STEP_FLAG) != 0)
ppi->flags |= PPI_FLAG_WAITING_FOR_RF_UP; ppi->flags |= PPI_FLAG_WAITING_FOR_RF_UP;
else else {
ppi->flags &= ~PPI_FLAG_WAITING_FOR_RF_UP; ppi->flags &= ~PPI_FLAG_WAITING_FOR_RF_UP;
/*
* Make sure responseOriginTimestamp is forced to 0
* for one-step responders
*/
memset(&ppi->t5, 0, sizeof(ppi->t5));
}
/* Save correctionField of pdelay_resp, see 11.4.3 d 3/4 */ /* Save correctionField of pdelay_resp, see 11.4.3 d 3/4 */
cField_to_TimeInternal(&ppi->cField, hdr->correctionfield); cField_to_TimeInternal(&ppi->cField, hdr->correctionfield);
......
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