From 2d3b9d18e79c93dc3186b60de06ec587852c980f Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Tue, 9 Jun 2020 11:31:49 -0700 Subject: Handle removed NIC in NDP timer for packet tx NDP packets are sent periodically from NDP timers. These timers do not hold the NIC lock when sending packets as the packet write operation may take some time. While the lock is not held, the NIC may be removed by some other goroutine. This change handles that scenario gracefully. Test: stack_test.TestRemoveNICWhileHandlingRSTimer PiperOrigin-RevId: 315524143 --- pkg/tcpip/stack/BUILD | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/tcpip/stack/BUILD') diff --git a/pkg/tcpip/stack/BUILD b/pkg/tcpip/stack/BUILD index f71073207..afca925ad 100644 --- a/pkg/tcpip/stack/BUILD +++ b/pkg/tcpip/stack/BUILD @@ -110,5 +110,6 @@ go_test( "//pkg/sync", "//pkg/tcpip", "//pkg/tcpip/buffer", + "//pkg/tcpip/header", ], ) -- cgit v1.2.3