Documentation
¶
Overview ¶
Provides encoding and decoding for ICMPv6 packets.
Index ¶
- Constants
- type Code
- type Packet
- func (p *Packet) Answers(other packet.Packet) bool
- func (p *Packet) Equals(other packet.Packet) bool
- func (p *Packet) GetLength() uint16
- func (p *Packet) GetType() packet.Type
- func (p *Packet) GuessPayloadType() packet.Type
- func (p *Packet) InitChecksum(csum uint32)
- func (p *Packet) Pack(buf *packet.Buffer) error
- func (p *Packet) Payload() packet.Packet
- func (p *Packet) SetPayload(pl packet.Packet) error
- func (p *Packet) String() string
- func (p *Packet) Unpack(buf *packet.Buffer) error
- type Type
Constants ¶
View Source
const ( DstUnreachable Type = 1 PacketTooBig = 2 TimeExceeded = 3 ParamProblem = 4 Private1 = 100 Private2 = 101 Reserved1 = 127 EchoRequest = 128 EchoReply = 129 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct { Type Type Code Code Checksum uint16 `string:"sum"` Body uint32 `cmp:"skip" string:"skip"` // contains filtered or unexported fields }
func (*Packet) GuessPayloadType ¶
func (*Packet) InitChecksum ¶
Click to show internal directories.
Click to hide internal directories.