icmp

package
v0.0.0-...-9ec6d29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Overview

Package icmp contains the implementation of the ICMP and IPv6-ICMP transport protocols for use in ping.

Index

Constants

View Source
const (
	// ProtocolNumber4 is the ICMP protocol number.
	ProtocolNumber4 = header.ICMPv4ProtocolNumber

	// ProtocolNumber6 is the IPv6-ICMP protocol number.
	ProtocolNumber6 = header.ICMPv6ProtocolNumber
)

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL