diff options
author | patr0nus <dk4rest@gmail.com> | 2020-10-11 17:41:29 +0800 |
---|---|---|
committer | patr0nus <dk4rest@gmail.com> | 2020-10-11 17:42:17 +0800 |
commit | d4413c31bd121bee66e42648360b1fc1ec7c04e1 (patch) | |
tree | ce0d7ff2bb562e26848894915a028f8073b159ab /pkg/tcpip/transport/udp | |
parent | db36d948fa63ce950d94a5e8e9ebc37956543661 (diff) |
Assign ep.effectiveNetProtos in UDP forwarder's CreateEndpoint
Diffstat (limited to 'pkg/tcpip/transport/udp')
-rw-r--r-- | pkg/tcpip/transport/udp/forwarder.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |