summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact/testbench/testbench.go
diff options
context:
space:
mode:
authorMithun Iyer <iyerm@google.com>2021-05-13 17:15:08 -0700
committergVisor bot <gvisor-bot@google.com>2021-05-13 17:17:44 -0700
commit7ea2dcbaece00b5c7310c74fcf99c1fb32e9ec28 (patch)
tree14ccea43da152671315895afd25bd13b3bc5aebf /test/packetimpact/testbench/testbench.go
parent3894c9fcb92f36a03020b6dc13f1471b10eec029 (diff)
Apply SWS avoidance to ACKs with window updates
When recovering from a zero-receive-window situation, and asked to send out an ACK, ensure that we apply SWS avoidance in our window updates. Fixes #5984 PiperOrigin-RevId: 373689578
Diffstat (limited to 'test/packetimpact/testbench/testbench.go')
-rw-r--r--test/packetimpact/testbench/testbench.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/packetimpact/testbench/testbench.go b/test/packetimpact/testbench/testbench.go
index a73c07e64..37d02365a 100644
--- a/test/packetimpact/testbench/testbench.go
+++ b/test/packetimpact/testbench/testbench.go
@@ -57,6 +57,11 @@ type DUTUname struct {
OperatingSystem string
}
+// IsLinux returns true if we are running natively on Linux.
+func (n *DUTUname) IsLinux() bool {
+ return Native && n.OperatingSystem == "GNU/Linux"
+}
+
// DUTTestNet describes the test network setup on dut and how the testbench
// should connect with an existing DUT.
type DUTTestNet struct {