mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Internal change.
PiperOrigin-RevId: 296088213
This commit is contained in:
committed by
Copybara-Service
parent
660cfdff3f
commit
2daa21e4d7
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user