Commit 30deba59 authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: standard/initializing: support master_only

While the standard protocol doesn't expect master-only opeation, the
flag is in the data strcture and this change, needed for white-rabbit,
has no effect here.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 05c06994
......@@ -73,7 +73,10 @@ int pp_initializing(struct pp_instance *ppi, unsigned char *pkt, int plen)
msg_pack_header(ppi, ppi->buf_out);
ppi->next_state = PPS_LISTENING;
if (!OPTS(ppi)->master_only)
ppi->next_state = PPS_LISTENING;
else
ppi->next_state = PPS_MASTER;
ppi->next_delay = PP_DEFAULT_NEXT_DELAY_MS;
return 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