aboutsummaryrefslogtreecommitdiff
path: root/cmd/vrouter
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-22 09:58:24 -0400
committersotech117 <michael_foiani@brown.edu>2023-10-22 09:58:24 -0400
commitd7c20268db996cd4a6599d85d0219a525dd43e6e (patch)
treeeca7a03955aab9f70372d99b1965527a7c1e1650 /cmd/vrouter
parente333100499904a35126dd70eea58802ed9761435 (diff)
implement delete from table based on timeout
Diffstat (limited to 'cmd/vrouter')
-rw-r--r--cmd/vrouter/main.go38
1 files changed, 0 insertions, 38 deletions
diff --git a/cmd/vrouter/main.go b/cmd/vrouter/main.go
index ec9a891..f274741 100644
--- a/cmd/vrouter/main.go
+++ b/cmd/vrouter/main.go
@@ -86,44 +86,6 @@ func main() {
}
}
}
-
- //// check if ipAddr is in neighbor table
- //iface, err := ipstack.GetNeighborByIP(ipAddr)
- //if err != nil {
- // fmt.Println(err)
- //
- // // check if ipAddr is in routing table
- // iface, err = ipstack.GetRouteByIP(ipAddr)
- // if err != nil {
- // fmt.Println(err)
- // continue
- // }
- //
- // // get the interface to send from
- // for _, interfaces := range ipstack.GetInterfaces() {
- // if interfaces.Name == iface.Name {
- // src := interfaces.IpPrefix.Addr()
- // err = ipstack.SendIP(&src, iface, 0, messageToSendBytes, ipAddr, nil)
- // if err != nil {
- // fmt.Println(err)
- // }
- // break
- // }
- // }
- // continue
- //}
- //// neighbor was found, send to neighbor
- //for _, interfaces := range ipstack.GetInterfaces() {
- // if interfaces.Name == iface.Name {
- // src := interfaces.IpPrefix.Addr()
- // err = ipstack.SendIP(&src, iface, 0, messageToSendBytes, ipAddr, nil)
- // if err != nil {
- // fmt.Println(err)
- // }
- // break
- // }
- //}
- //continue
}
}
if len(line) > 2 {