Commit 62d34f40 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't dump invalid neighbours on local interface.

parent 16bda605
...@@ -219,8 +219,11 @@ local_dump() ...@@ -219,8 +219,11 @@ local_dump()
return; return;
local_notify_self(); local_notify_self();
for(i = 0; i < numneighs; i++) for(i = 0; i < numneighs; i++) {
if(!neighbour_valid(&neighs[i]))
continue;
local_notify_neighbour(&neighs[i], LOCAL_ADD); local_notify_neighbour(&neighs[i], LOCAL_ADD);
}
for(i = 0; i < numxroutes; i++) for(i = 0; i < numxroutes; i++)
local_notify_xroute(&xroutes[i], LOCAL_ADD); local_notify_xroute(&xroutes[i], LOCAL_ADD);
for(i = 0; i < numroutes; i++) for(i = 0; i < numroutes; i++)
......
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