Commit dfe63a08 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Initialise network's hello_interval straight away.

This avoids a crash if we attempt to compute jitter intervals before
the interface is officially up.
parent b6800c32
......@@ -57,6 +57,7 @@ add_network(char *ifname, int wired, unsigned int cost)
nets[numnets].buffered = 0;
nets[numnets].bucket_time = now.tv_sec;
nets[numnets].bucket = 0;
nets[numnets].hello_interval = 10000;
nets[numnets].hello_seqno = (random() & 0xFFFF);
numnets++;
return &nets[numnets - 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