diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-10-23 04:52:43 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-10-23 04:52:43 -0400 |
commit | fce81b0ba78d52427fc2ba43af63732d3205dcf1 (patch) | |
tree | b0c763d85ab96022fd2cada375eefdaa01d0b409 /cmd | |
parent | 512c4c2785e6dbf53106b5a6f60e0e1992977016 (diff) |
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.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/vhost/main.go | 6 | ||||
-rw-r--r-- | cmd/vrouter/main.go | 6 |
2 files changed, 6 insertions, 6 deletions
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) diff --git a/cmd/vrouter/main.go b/cmd/vrouter/main.go index 7998e5d..cde49a8 100644 --- a/cmd/vrouter/main.go +++ b/cmd/vrouter/main.go @@ -44,13 +44,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) |