From 6fe8b91fb91882f456ebba16ee9a27f804c24e26 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 23 Oct 2023 14:57:34 -0400 Subject: small refactoring --- pkg/ipstack/ipstack.go | 2 +- vhost | Bin 3105176 -> 3095650 bytes vrouter | Bin 3105176 -> 3095650 bytes 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go index 61b33b0..2ab2a5f 100644 --- a/pkg/ipstack/ipstack.go +++ b/pkg/ipstack/ipstack.go @@ -887,7 +887,7 @@ func handleRIP(src *Interface, dest *Neighbor, message []byte, hdr *ipv4header.I if entry.cost == INFINITY { // remove after GC time if the COST is still INFINITY go func() { - time.Sleep(12 * time.Second) + time.Sleep(time.Second * time.Duration(MAX_TIMEOUT)) if routingTable[destination].Cost == INFINITY { delete(routingTable, destination) mu.Lock() diff --git a/vhost b/vhost index f9b9407..7ca732c 100755 Binary files a/vhost and b/vhost differ diff --git a/vrouter b/vrouter index b5f089b..7b61c7e 100755 Binary files a/vrouter and b/vrouter differ -- cgit v1.2.3-70-g09d2