aboutsummaryrefslogtreecommitdiff
path: root/cmd/vhost/main.go
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-24 01:12:05 +0000
committersotech117 <michael_foiani@brown.edu>2023-10-24 01:12:05 +0000
commit87b6e36391a0a37f5136910dfc331807add61eef (patch)
treeefcf0df633d1cf72545f823d44856394e552f704 /cmd/vhost/main.go
parent6ac55a56369b2f98f094e7e36fa917b84c02cd07 (diff)
more descriptive errors to match reference. final commit :)
Diffstat (limited to 'cmd/vhost/main.go')
-rw-r--r--cmd/vhost/main.go4
1 files changed, 1 insertions, 3 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())
-
}
}
}