aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/vhost/main.go4
-rw-r--r--cmd/vrouter/main.go3
2 files changed, 2 insertions, 5 deletions
diff --git a/cmd/vhost/main.go b/cmd/vhost/main.go
index e83d1bf..c0e5ad8 100644
--- a/cmd/vhost/main.go
+++ b/cmd/vhost/main.go
@@ -71,11 +71,9 @@ func main() {
if neighbor.VipAddr == address ||
neighbor.VipAddr == hop.VIP && hop.Type == "S" {
bytesWritten, err := ipstack.SendIP(&myAddr, neighbor, ipstack.TEST_PROTOCOL, messageToSendBytes, ipAddr, nil)
+ fmt.Printf("Sent %d bytes to %s\n", bytesWritten, neighbor.VipAddr.String())
if err != nil {
fmt.Println(err)
- } else {
- fmt.Printf("Sent %d bytes to %s\n", bytesWritten, neighbor.VipAddr.String())
-
}
}
}
diff --git a/cmd/vrouter/main.go b/cmd/vrouter/main.go
index bc8cb2b..2736525 100644
--- a/cmd/vrouter/main.go
+++ b/cmd/vrouter/main.go
@@ -90,10 +90,9 @@ func main() {
neighbor.VipAddr == hop.VIP {
// send the message to the neighbor
bytesWritten, err := ipstack.SendIP(&myAddr, neighbor, ipstack.TEST_PROTOCOL, messageToSendBytes, ipAddr, nil)
+ fmt.Printf("Sent %d bytes to %s\n", bytesWritten, neighbor.VipAddr.String())
if err != nil {
fmt.Println(err)
- } else {
- fmt.Printf("Sent %d bytes to %s\n", bytesWritten, neighbor.VipAddr.String())
}
}
}