Fix typo while initializing protocol for UDP endpoints.

Fixes #763

PiperOrigin-RevId: 275563222
This commit is contained in:
Mithun Iyer
2019-10-18 16:00:11 -07:00
committed by gVisor bot
parent 49b596b98d
commit 487d3b2358
+1 -1
View File
@@ -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