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/network/arp/arp_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/tcpip/network/arp') diff --git a/pkg/tcpip/network/arp/arp_test.go b/pkg/tcpip/network/arp/arp_test.go index 087ee9c66..91d59d83f 100644 --- a/pkg/tcpip/network/arp/arp_test.go +++ b/pkg/tcpip/network/arp/arp_test.go @@ -439,6 +439,10 @@ func (*testInterface) Enabled() bool { return true } +func (*testInterface) Promiscuous() bool { + return false +} + func (t *testInterface) WritePacketToRemote(remoteLinkAddr tcpip.LinkAddress, gso *stack.GSO, protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer) *tcpip.Error { r := stack.Route{ NetProto: protocol, -- cgit v1.2.3