summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorMithun Iyer <iyerm@google.com>2019-10-18 15:58:40 -0700
committergVisor bot <gvisor-bot@google.com>2019-10-18 16:00:11 -0700
commit487d3b2358239254e757f4ce3b0cd31615d80e1b (patch)
treeacedb1e6e7c437c79b0faea59b702fcd9d499baf /pkg
parent49b596b98d9317cb1b63d8004b812e3329812528 (diff)
Fix typo while initializing protocol for UDP endpoints.
Fixes #763 PiperOrigin-RevId: 275563222
Diffstat (limited to 'pkg')
-rw-r--r--pkg/tcpip/transport/udp/endpoint.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/udp/endpoint.go b/pkg/tcpip/transport/udp/endpoint.go
index 6e87245b7..91c8487f3 100644
--- a/pkg/tcpip/transport/udp/endpoint.go
+++ b/pkg/tcpip/transport/udp/endpoint.go
@@ -140,7 +140,7 @@ func newEndpoint(s *stack.Stack, netProto tcpip.NetworkProtocolNumber, waiterQue
stack: s,
TransportEndpointInfo: stack.TransportEndpointInfo{
NetProto: netProto,
- TransProto: header.TCPProtocolNumber,
+ TransProto: header.UDPProtocolNumber,
},
waiterQueue: waiterQueue,
// RFC 1075 section 5.4 recommends a TTL of 1 for membership