Commit 1410e881 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Call flushupdates when leaving the network.

parent f8a954e1
...@@ -542,6 +542,7 @@ main(int argc, char **argv) ...@@ -542,6 +542,7 @@ main(int argc, char **argv)
/* Make sure that we expire quickly from our neighbours' /* Make sure that we expire quickly from our neighbours'
association caches. */ association caches. */
send_hello_noupdate(&nets[i], 1); send_hello_noupdate(&nets[i], 1);
flushupdates();
flushbuf(&nets[i]); flushbuf(&nets[i]);
usleep(50000 + random() % 100000); usleep(50000 + random() % 100000);
} }
...@@ -549,6 +550,7 @@ main(int argc, char **argv) ...@@ -549,6 +550,7 @@ main(int argc, char **argv)
/* Make sure they got it. */ /* Make sure they got it. */
send_self_retract(&nets[i]); send_self_retract(&nets[i]);
send_hello_noupdate(&nets[i], 1); send_hello_noupdate(&nets[i], 1);
flushupdates();
flushbuf(&nets[i]); flushbuf(&nets[i]);
usleep(50000 + random() % 100000); usleep(50000 + random() % 100000);
kernel_setup_interface(0, nets[i].ifname, nets[i].ifindex); kernel_setup_interface(0, nets[i].ifname, nets[i].ifindex);
......
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