diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/vhost/main.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/vhost/main.go b/cmd/vhost/main.go index 5a8324f..3c35792 100644 --- a/cmd/vhost/main.go +++ b/cmd/vhost/main.go @@ -59,7 +59,7 @@ func main() { // combine message into one string messageToSend := strings.Join(message, " ") messageToSendBytes := []byte(messageToSend) - + address, _ := netip.ParseAddr(ipAddr) hop, err := ipstack.LongestPrefix(address) if err != nil { @@ -68,7 +68,6 @@ func main() { } myAddr := hop.Interface.IpPrefix.Addr() for _, neighbor := range ipstack.GetNeighbors()[hop.Interface.Name] { - // TODO: fix multiple send bug here on static route if neighbor.VipAddr == address || neighbor.VipAddr == hop.VIP && hop.Type == "S" { bytesWritten, err := ipstack.SendIP(&myAddr, neighbor, ipstack.TEST_PROTOCOL, messageToSendBytes, ipAddr, nil) |