diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-10-23 01:48:23 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-10-23 01:48:23 -0400 |
commit | 8f5877a04b3c82f5c298b87f6a0f6356d2acffcd (patch) | |
tree | 3e1a8b3e8d505ea917a3b0c2dc9f571ef617726b /cmd | |
parent | dfb6e62b2484660730e271f5568d1366bd439864 (diff) |
potentially implement reverse poision. fix port sending numbers. fix bug secing bug from router static routes.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/vrouter/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/vrouter/main.go b/cmd/vrouter/main.go index f274741..aacf786 100644 --- a/cmd/vrouter/main.go +++ b/cmd/vrouter/main.go @@ -79,7 +79,7 @@ func main() { myAddr := hop.Interface.IpPrefix.Addr() for _, neighbor := range ipstack.GetNeighbors()[hop.Interface.Name] { if neighbor.VipAddr == netip.MustParseAddr(ipAddr) || - neighbor.VipAddr == hop.VIP && hop.Type == "S" { + neighbor.VipAddr == hop.VIP { err = ipstack.SendIP(&myAddr, neighbor, ipstack.TEST_PROTOCOL, messageToSendBytes, ipAddr, nil) if err != nil { fmt.Println(err) |