ping

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

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ICMP_TYPE_ECHO_REQUEST             = 8
	ICMP_TYPE_ECHO_REPLY               = 0
	ICMP_ECHO_REPLY_HEADER_IPV4_OFFSET = 20
)
View Source
const (
	ICMP6_TYPE_ECHO_REQUEST             = 128
	ICMP6_TYPE_ECHO_REPLY               = 129
	ICMP6_ECHO_REPLY_HEADER_IPV6_OFFSET = 40
)

Variables

This section is empty.

Functions

func Main

func Main(stdout io.Writer, args []string) error

Types

type Option

type Option struct {
	// contains filtered or unexported fields
}

func NewFlagSet

func NewFlagSet() (*flag.FlagSet, *Option)

type Ping

type Ping struct {
	PacketSize int
	// contains filtered or unexported fields
}

func NewPing

func NewPing() *Ping

Jump to

Keyboard shortcuts

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