icmp4

package
v1.2.0-rc.1.0...-65ced95 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Echo_reply                  = 0
	Destination_unreachable     = 3
	Source_quench               = 4
	Redirect                    = 5
	Alternate_host_address      = 6
	Echo_request                = 8
	Router_advertisement        = 9
	Router_solicitation         = 10
	Time_exceeded               = 11
	Parameter_problem           = 12
	Timestamp_request           = 13
	Timestamp_reply             = 14
	Information_request         = 15
	Information_reply           = 16
	Address_mask_request        = 17
	Address_mask_reply          = 18
	Traceroute                  = 30
	Datagram_conversion_error   = 31
	Mobile_host_redirect        = 32
	Ip6_where_are_you           = 33
	Ip6_i_am_here               = 34
	Mobile_registration_request = 35
	Mobile_registration_reply   = 36
	Domain_name_request         = 37
	Domain_name_reply           = 38
	Skip                        = 39
	Photuris                    = 40
)
View Source
const EchoRequestBytes = 4
View Source
const SizeofHeader = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoRequest

type EchoRequest struct {
	Id       vnet.Uint16
	Sequence vnet.Uint16
}

func (*EchoRequest) Len

func (h *EchoRequest) Len() uint

func (*EchoRequest) Read

func (h *EchoRequest) Read(b []byte) vnet.PacketHeader

func (*EchoRequest) String

func (h *EchoRequest) String() string

func (*EchoRequest) Write

func (h *EchoRequest) Write(b []byte)
type Header struct {
	Type     Type
	Code     uint8
	Checksum vnet.Uint16
}

func (*Header) Len

func (h *Header) Len() uint

func (*Header) Parse

func (h *Header) Parse(in *parse.Input)

func (*Header) Read

func (h *Header) Read(b []byte) vnet.PacketHeader

func (*Header) String

func (h *Header) String() string

func (*Header) Write

func (h *Header) Write(b []byte)

type Type

type Type uint8

func (*Type) Parse

func (t *Type) Parse(in *parse.Input)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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