aboutsummaryrefslogtreecommitdiff
path: root/cmd/vrouter
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/vrouter')
-rw-r--r--cmd/vrouter/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/vrouter/main.go b/cmd/vrouter/main.go
index aacf786..7998e5d 100644
--- a/cmd/vrouter/main.go
+++ b/cmd/vrouter/main.go
@@ -80,9 +80,11 @@ func main() {
for _, neighbor := range ipstack.GetNeighbors()[hop.Interface.Name] {
if neighbor.VipAddr == netip.MustParseAddr(ipAddr) ||
neighbor.VipAddr == hop.VIP {
- err = ipstack.SendIP(&myAddr, neighbor, ipstack.TEST_PROTOCOL, messageToSendBytes, ipAddr, nil)
+ bytesWritten, err := ipstack.SendIP(&myAddr, neighbor, ipstack.TEST_PROTOCOL, messageToSendBytes, ipAddr, nil)
if err != nil {
fmt.Println(err)
+ } else {
+ fmt.Printf("Sent %d bytes to %s\n", bytesWritten, neighbor.VipAddr.String())
}
}
}