ping

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ping contains the implementation of the ICMP and IPv6-ICMP transport protocols for use in ping. To use it in the networking stack, this package must be added to the project, and activated on the stack by passing ping.ProtocolName (or "ping") and/or ping.ProtocolName6 (or "ping6") as one of the transport protocols when calling stack.New(). Then endpoints can be created by passing ping.ProtocolNumber or ping.ProtocolNumber6 as the transport protocol number when calling Stack.NewEndpoint().

Index

Constants

View Source
const (
	// ProtocolName4 is the string representation of the ping protocol name.
	ProtocolName4 = "ping4"

	// ProtocolNumber4 is the ICMP protocol number.
	ProtocolNumber4 = header.ICMPv4ProtocolNumber

	// ProtocolName6 is the string representation of the ping protocol name.
	ProtocolName6 = "ping6"

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

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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