aboutsummaryrefslogtreecommitdiff
path: root/cmd/vrouter/main.go
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-23 04:52:43 -0400
committersotech117 <michael_foiani@brown.edu>2023-10-23 04:52:43 -0400
commitfce81b0ba78d52427fc2ba43af63732d3205dcf1 (patch)
treeb0c763d85ab96022fd2cada375eefdaa01d0b409 /cmd/vrouter/main.go
parent512c4c2785e6dbf53106b5a6f60e0e1992977016 (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/vrouter/main.go')
-rw-r--r--cmd/vrouter/main.go6
1 files changed, 3 insertions, 3 deletions
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)