summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact/testbench/rawsockets.go
diff options
context:
space:
mode:
authorZeling Feng <zeling@google.com>2020-09-16 16:23:59 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-16 16:26:10 -0700
commit64aae6bbd6ab8c23ee48fd6e7315c27c2cbf2ea4 (patch)
tree6e08f70b058082d5a4dd025402237ea9c4b18c39 /test/packetimpact/testbench/rawsockets.go
parentb6d165fe98b908a7aa97e3fadd61ddd3731be915 (diff)
Cleanup device name confusion in packetimpact testbench
There are two device names on the test net. - The sniffer/injector device which is always a linux device. Only the testbench library is interested in this device. - The device which is on the DUT. It happens to be the same device as the former if DUT is linux. An individual test might be interested in this device if the test cares about the device name. PiperOrigin-RevId: 332112968
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 57e822725..193bb2dc8 100644
--- a/test/packetimpact/testbench/rawsockets.go
+++ b/test/packetimpact/testbench/rawsockets.go
@@ -139,7 +139,7 @@ type Injector struct {
func NewInjector(t *testing.T) (Injector, error) {
t.Helper()
- ifInfo, err := net.InterfaceByName(Device)
+ ifInfo, err := net.InterfaceByName(LocalDevice)
if err != nil {
return Injector{}, err
}