From c8d835470037be9efcad13091fb6d173c68cc0ca Mon Sep 17 00:00:00 2001 From: Zeling Feng Date: Tue, 26 Oct 2021 10:11:19 -0700 Subject: Remove superfluous SO_RCVBUFFORCE PiperOrigin-RevId: 405674425 --- test/packetimpact/testbench/rawsockets.go | 3 --- 1 file changed, 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) } -- cgit v1.2.3