summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip
diff options
context:
space:
mode:
authorpatr0nus <dk4rest@gmail.com>2020-10-11 17:41:29 +0800
committerpatr0nus <dk4rest@gmail.com>2020-10-11 17:42:17 +0800
commitd4413c31bd121bee66e42648360b1fc1ec7c04e1 (patch)
treece0d7ff2bb562e26848894915a028f8073b159ab /pkg/tcpip
parentdb36d948fa63ce950d94a5e8e9ebc37956543661 (diff)
Assign ep.effectiveNetProtos in UDP forwarder's CreateEndpoint
Diffstat (limited to 'pkg/tcpip')
-rw-r--r--pkg/tcpip/transport/udp/forwarder.go1
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