aboutsummaryrefslogtreecommitdiff
path: root/cmd/vhost/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/vhost/main.go')
-rw-r--r--cmd/vhost/main.go37
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 {