From d4413c31bd121bee66e42648360b1fc1ec7c04e1 Mon Sep 17 00:00:00 2001 From: patr0nus Date: Sun, 11 Oct 2020 17:41:29 +0800 Subject: Assign ep.effectiveNetProtos in UDP forwarder's CreateEndpoint --- pkg/tcpip/transport/udp/forwarder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/tcpip/transport/udp/forwarder.go b/pkg/tcpip/transport/udp/forwarder.go index c67e0ba95..3ae6cc221 100644 --- a/pkg/tcpip/transport/udp/forwarder.go +++ b/pkg/tcpip/transport/udp/forwarder.go @@ -81,6 +81,7 @@ func (r *ForwarderRequest) CreateEndpoint(queue *waiter.Queue) (tcpip.Endpoint, ep.ID = r.id ep.route = r.route.Clone() ep.dstPort = r.id.RemotePort + ep.effectiveNetProtos = []tcpip.NetworkProtocolNumber{r.route.NetProto} ep.RegisterNICID = r.route.NICID() ep.boundPortFlags = ep.portFlags -- cgit v1.2.3