From 99decaadd6da0df2d8ec70ddea9d754c9d71a584 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Wed, 23 Sep 2020 02:26:50 -0700 Subject: Extract ICMP error sender from UDP Store transport protocol number on packet buffers for use in ICMP error generation. Updates #2211. PiperOrigin-RevId: 333252762 --- pkg/tcpip/stack/nic_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/tcpip/stack/nic_test.go') diff --git a/pkg/tcpip/stack/nic_test.go b/pkg/tcpip/stack/nic_test.go index dd6474297..ef6e63b3e 100644 --- a/pkg/tcpip/stack/nic_test.go +++ b/pkg/tcpip/stack/nic_test.go @@ -221,6 +221,11 @@ func (*testIPv6Protocol) Parse(*PacketBuffer) (tcpip.TransportProtocolNumber, bo return 0, false, false } +// ReturnError implements NetworkProtocol.ReturnError. +func (*testIPv6Protocol) ReturnError(*Route, tcpip.ICMPReason, *PacketBuffer) *tcpip.Error { + return nil +} + var _ LinkAddressResolver = (*testIPv6Protocol)(nil) // LinkAddressProtocol implements LinkAddressResolver. -- cgit v1.2.3