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