Commit 75f9c798 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Adapt local_dump to the new neighbours table.

parent 7ecc8fbd
...@@ -223,6 +223,7 @@ void ...@@ -223,6 +223,7 @@ void
local_dump() local_dump()
{ {
int i, rc; int i, rc;
struct neighbour *neigh;
const char *header = "BABEL 0.0\n"; const char *header = "BABEL 0.0\n";
if(local_socket < 0) if(local_socket < 0)
...@@ -233,10 +234,8 @@ local_dump() ...@@ -233,10 +234,8 @@ local_dump()
goto fail; goto fail;
local_notify_self(); local_notify_self();
for(i = 0; i < numneighs; i++) { FOR_ALL_NEIGHBOURS(neigh) {
if(!neighbour_valid(&neighs[i])) local_notify_neighbour(neigh, LOCAL_ADD);
continue;
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);
......
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