From f98c3ee32c592417aa84f5c302b9db49f12ba129 Mon Sep 17 00:00:00 2001 From: Bhasker Hariharan Date: Tue, 15 Oct 2019 17:03:13 -0700 Subject: Remove panic when reassembly fails. Reassembly can fail due to an invalid sequence of fragments being received. eg. Multiple fragments with same id which claim to be the last one by setting the more flag to 0 etc. It's safer to just drop the reassembler and increment a metric than to panic when reassembly fails. PiperOrigin-RevId: 274920901 --- pkg/tcpip/network/fragmentation/BUILD | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/tcpip/network/fragmentation/BUILD') diff --git a/pkg/tcpip/network/fragmentation/BUILD b/pkg/tcpip/network/fragmentation/BUILD index 825ff3392..2cad0a0b6 100644 --- a/pkg/tcpip/network/fragmentation/BUILD +++ b/pkg/tcpip/network/fragmentation/BUILD @@ -28,6 +28,7 @@ go_library( visibility = ["//:sandbox"], deps = [ "//pkg/log", + "//pkg/tcpip", "//pkg/tcpip/buffer", ], ) -- cgit v1.2.3