icmp

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ICMPv4 = 1
	ICMPv6 = 58
)
View Source
const (
	FlagAck = 1
)

Variables

View Source
var (
	ErrInvalidPacket = errors.New("icmp: invalid packet")
	ErrInvalidType   = errors.New("icmp: invalid type")
	ErrShortBuffer   = errors.New("icmp: short buffer")
)

Functions

func ClientConn

func ClientConn(ip6 bool, conn net.PacketConn, id int) net.PacketConn

func ServerConn

func ServerConn(ip6 bool, conn net.PacketConn) net.PacketConn

Types

This section is empty.

Jump to

Keyboard shortcuts

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