summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZeling Feng <zeling@google.com>2021-10-26 10:11:19 -0700
committergVisor bot <gvisor-bot@google.com>2021-10-26 10:14:55 -0700
commitc8d835470037be9efcad13091fb6d173c68cc0ca (patch)
tree3ed2ee9ccaa68c18f7a6725c3c949c8f0b9e471b
parent12480f1c4b49234a3761856e40d4d122695b610f (diff)
Remove superfluous SO_RCVBUFFORCE
PiperOrigin-RevId: 405674425
-rw-r--r--test/packetimpact/testbench/rawsockets.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/packetimpact/testbench/rawsockets.go b/test/packetimpact/testbench/rawsockets.go
index 6d95c033d..32be06ac4 100644
--- a/test/packetimpact/testbench/rawsockets.go
+++ b/test/packetimpact/testbench/rawsockets.go
@@ -58,9 +58,6 @@ func (n *DUTTestNet) NewSniffer(t *testing.T) (Sniffer, error) {
if err := unix.Bind(snifferFd, &sa); err != nil {
return Sniffer{}, err
}
- if err := unix.SetsockoptInt(snifferFd, unix.SOL_SOCKET, unix.SO_RCVBUFFORCE, 1); err != nil {
- t.Fatalf("can't set sockopt SO_RCVBUFFORCE to 1: %s", err)
- }
if err := unix.SetsockoptInt(snifferFd, unix.SOL_SOCKET, unix.SO_RCVBUF, 1e7); err != nil {
t.Fatalf("can't setsockopt SO_RCVBUF to 10M: %s", err)
}