package icmp
import "gvisor.dev/gvisor/pkg/tcpip/transport/icmp"
Package icmp contains the implementation of the ICMP and IPv6-ICMP transport protocols for use in ping.
Index ¶
- Constants
- func NewProtocol4(s *stack.Stack) stack.TransportProtocol
- func NewProtocol6(s *stack.Stack) stack.TransportProtocol
Constants ¶
const ( // ProtocolNumber4 is the ICMP protocol number. ProtocolNumber4 = header.ICMPv4ProtocolNumber // ProtocolNumber6 is the IPv6-ICMP protocol number. ProtocolNumber6 = header.ICMPv6ProtocolNumber )
Functions ¶
func NewProtocol4 ¶
func NewProtocol4(s *stack.Stack) stack.TransportProtocol
NewProtocol4 returns an ICMPv4 transport protocol.
func NewProtocol6 ¶
func NewProtocol6(s *stack.Stack) stack.TransportProtocol
NewProtocol6 returns an ICMPv6 transport protocol.
Source Files ¶
endpoint.go endpoint_state.go protocol.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 20 minutes ago –
Tools for package owners.