Commit 6b637000 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Flush resends when flushing a neighbour.

parent a278047d
...@@ -33,6 +33,7 @@ THE SOFTWARE. ...@@ -33,6 +33,7 @@ THE SOFTWARE.
#include "source.h" #include "source.h"
#include "route.h" #include "route.h"
#include "message.h" #include "message.h"
#include "resend.h"
#include "local.h" #include "local.h"
struct neighbour *neighs = NULL; struct neighbour *neighs = NULL;
...@@ -55,6 +56,7 @@ flush_neighbour(struct neighbour *neigh) ...@@ -55,6 +56,7 @@ flush_neighbour(struct neighbour *neigh)
flush_neighbour_routes(neigh); flush_neighbour_routes(neigh);
if(unicast_neighbour == neigh) if(unicast_neighbour == neigh)
flush_unicast(1); flush_unicast(1);
flush_resends(neigh);
if(neighs == neigh) { if(neighs == neigh) {
neighs = neigh->next; neighs = neigh->next;
......
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