From 7ea2dcbaece00b5c7310c74fcf99c1fb32e9ec28 Mon Sep 17 00:00:00 2001 From: Mithun Iyer Date: Thu, 13 May 2021 17:15:08 -0700 Subject: 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 --- test/packetimpact/testbench/testbench.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/packetimpact/testbench/testbench.go') 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 { -- cgit v1.2.3