Internal change.

PiperOrigin-RevId: 296088213
This commit is contained in:
gVisor bot
2020-02-19 16:48:57 -08:00
committed by Copybara-Service
parent 660cfdff3f
commit 2daa21e4d7
+2
View File
@@ -75,6 +75,8 @@ func getTransportProtocol(ctx context.Context, stype linux.SockType, protocol in
switch protocol {
case syscall.IPPROTO_ICMP:
return header.ICMPv4ProtocolNumber, true, nil
case syscall.IPPROTO_ICMPV6:
return header.ICMPv6ProtocolNumber, true, nil
case syscall.IPPROTO_UDP:
return header.UDPProtocolNumber, true, nil
case syscall.IPPROTO_TCP: