summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact/testbench/rawsockets.go
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2020-05-08 15:38:42 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-08 15:40:27 -0700
commite4d2d21f6b1b93146378ed5edc0c55d2ae4fb3af (patch)
tree5aade9f9682f663d4e55394325fc9859d723cc5d /test/packetimpact/testbench/rawsockets.go
parent21b71395a6aa2eafbc4c59222574d56c2db2e23b (diff)
Add UDP send/recv packetimpact tests.
Fixes #2654 PiperOrigin-RevId: 310642216
Diffstat (limited to 'test/packetimpact/testbench/rawsockets.go')
-rw-r--r--test/packetimpact/testbench/rawsockets.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/packetimpact/testbench/rawsockets.go b/test/packetimpact/testbench/rawsockets.go
index ff722d4a6..a9ad72b63 100644
--- a/test/packetimpact/testbench/rawsockets.go
+++ b/test/packetimpact/testbench/rawsockets.go
@@ -169,7 +169,7 @@ func NewInjector(t *testing.T) (Injector, error) {
// Send a raw frame.
func (i *Injector) Send(b []byte) {
if _, err := unix.Write(i.fd, b); err != nil {
- i.t.Fatalf("can't write: %s", err)
+ i.t.Fatalf("can't write: %s of len %d", err, len(b))
}
}