Commit dfe63a08 by 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.
1 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];
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!