From fce81b0ba78d52427fc2ba43af63732d3205dcf1 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 23 Oct 2023 04:52:43 -0400 Subject: implement basic triggered updates, but there is still a small bug with rerouting after a router goes down I need to fix. also, fixed the print functions and returned them to sprint so I can test. --- cmd/vhost/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/vhost') diff --git a/cmd/vhost/main.go b/cmd/vhost/main.go index 468409d..dbf899a 100644 --- a/cmd/vhost/main.go +++ b/cmd/vhost/main.go @@ -30,13 +30,13 @@ func main() { switch line { case "li": fmt.Println("Name\tAddr/Prefix\tState") - ipstack.SprintInterfaces() + fmt.Println(ipstack.SprintInterfaces()) case "ln": fmt.Println("Iface\tVIP\tUDPAddr") - ipstack.SprintNeighbors() + fmt.Println(ipstack.SprintNeighbors()) case "lr": fmt.Println("T\tPrefix\tNext Hop\tCost") - ipstack.SprintRoutingTable() + fmt.Println(ipstack.SprintRoutingTable()) case "q": ipstack.CleanUp() os.Exit(0) -- cgit v1.2.3-70-g09d2