Commit f86618f4 authored by Alessandro Rubini's avatar Alessandro Rubini

pdelay bugfix: increment sequence number of pdelay request

bug introduced in 4126868c, we were incrementing the delay-request
sequence number instead of ours.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 8565d01a
...@@ -356,7 +356,7 @@ static void msg_pack_pdelay_req(struct pp_instance *ppi, ...@@ -356,7 +356,7 @@ static void msg_pack_pdelay_req(struct pp_instance *ppi,
*(char *)(buf + 0) = *(char *)(buf + 0) | 0x02; *(char *)(buf + 0) = *(char *)(buf + 0) | 0x02;
*(UInteger16 *) (buf + 2) = htons(PP_PDELAY_REQ_LENGTH); *(UInteger16 *) (buf + 2) = htons(PP_PDELAY_REQ_LENGTH);
ppi->sent_seq[PPM_DELAY_REQ]++; ppi->sent_seq[PPM_PDELAY_REQ]++;
/* Reset all flags (see Table 20) */ /* Reset all flags (see Table 20) */
flags[0] = flags[1] = 0; flags[0] = flags[1] = 0;
......
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