From 1a972411b36b8ad2543d3ea614c92e60ccbdffab Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Thu, 12 Nov 2020 17:30:31 -0800 Subject: Move packet handling to NetworkEndpoint The NIC should not hold network-layer state or logic - network packet handling/forwarding should be performed at the network layer instead of the NIC. Fixes #4688 PiperOrigin-RevId: 342166985 --- pkg/tcpip/transport/udp/udp_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/tcpip/transport/udp') diff --git a/pkg/tcpip/transport/udp/udp_test.go b/pkg/tcpip/transport/udp/udp_test.go index c09c7aa86..df62177cd 100644 --- a/pkg/tcpip/transport/udp/udp_test.go +++ b/pkg/tcpip/transport/udp/udp_test.go @@ -1451,6 +1451,10 @@ func (*testInterface) Enabled() bool { return true } +func (*testInterface) Promiscuous() bool { + return false +} + func (*testInterface) WritePacketToRemote(tcpip.LinkAddress, *stack.GSO, tcpip.NetworkProtocolNumber, *stack.PacketBuffer) *tcpip.Error { return tcpip.ErrNotSupported } -- cgit v1.2.3