summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact/testbench/rawsockets.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-05-11 15:52:42 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-11 15:54:08 -0700
commit633e1b89bb403edb2cfe2b0c2e1c902f68743743 (patch)
treeac575d8ee3b223f8cb026dd4d32c881ec21729b9 /test/packetimpact/testbench/rawsockets.go
parente838e7ab3406ff55faf034f67fe91a31cca18ab5 (diff)
Internal change.
PiperOrigin-RevId: 311011004
Diffstat (limited to 'test/packetimpact/testbench/rawsockets.go')
-rw-r--r--test/packetimpact/testbench/rawsockets.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/packetimpact/testbench/rawsockets.go b/test/packetimpact/testbench/rawsockets.go
index a9ad72b63..4665f60b2 100644
--- a/test/packetimpact/testbench/rawsockets.go
+++ b/test/packetimpact/testbench/rawsockets.go
@@ -27,8 +27,6 @@ import (
"gvisor.dev/gvisor/pkg/usermem"
)
-var device = flag.String("device", "", "local device for test packets")
-
// Sniffer can sniff raw packets on the wire.
type Sniffer struct {
t *testing.T
@@ -139,7 +137,7 @@ type Injector struct {
// NewInjector creates a new injector on *device.
func NewInjector(t *testing.T) (Injector, error) {
flag.Parse()
- ifInfo, err := net.InterfaceByName(*device)
+ ifInfo, err := net.InterfaceByName(Device)
if err != nil {
return Injector{}, err
}