aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-23 18:15:27 -0400
committersotech117 <michael_foiani@brown.edu>2023-10-23 18:16:35 -0400
commit93416359403895d1dd1584c316d9e3dbfcc7a673 (patch)
tree789778323bc650edae161d4f24b7608542aa854f /cmd
parentac25948cb2f8c8b7f88bd95b953cec12686bf109 (diff)
update socket name in readme
Diffstat (limited to 'cmd')
-rw-r--r--cmd/vhost/main.go3
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)