aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/ipstack/ipstack.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go
index 446bbff..5546e32 100644
--- a/pkg/ipstack/ipstack.go
+++ b/pkg/ipstack/ipstack.go
@@ -388,4 +388,13 @@ func CleanUp() {
n.SendSocket.Close()
}
}
+
+ // delete all the neighbors
+ myNeighbors = make(map[string][]*Neighbor)
+ // delete tall the interfaces
+ myInterfaces = nil
+ // delete the routing table
+ routingTable = make(map[netip.Prefix]Hop)
+
+ time.Sleep(5 * time.Millisecond)
}