diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-10-22 09:58:24 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-10-22 09:58:24 -0400 |
commit | d7c20268db996cd4a6599d85d0219a525dd43e6e (patch) | |
tree | eca7a03955aab9f70372d99b1965527a7c1e1650 /cmd/vhost | |
parent | e333100499904a35126dd70eea58802ed9761435 (diff) |
implement delete from table based on timeout
Diffstat (limited to 'cmd/vhost')
-rw-r--r-- | cmd/vhost/main.go | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/cmd/vhost/main.go b/cmd/vhost/main.go index 549b1de..17b4a02 100644 --- a/cmd/vhost/main.go +++ b/cmd/vhost/main.go @@ -69,43 +69,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 - // } - // - // 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 - // } - // 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 { |