From 93416359403895d1dd1584c316d9e3dbfcc7a673 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 23 Oct 2023 18:15:27 -0400 Subject: update socket name in readme --- cmd/vhost/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd/vhost') 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) -- cgit v1.2.3-70-g09d2