Documentation ¶
Overview ¶
Package icmp implements the ICMP header support in Lucius.
Package icmp implements the ICMP header support in Lucius.
Package icmp implements the ICMP header support in Lucius.
Index ¶
Constants ¶
const ( ICMP6RouterSolicitation = uint8(133) ICMP6RouterAdvertisement = uint8(134) ICMP6NeighborSolicitation = uint8(135) ICMP6NeighborAdvertisement = uint8(136) ICMP6NeighborRedirect = uint8(137) )
Set of supported ICMP6 message types.
const ( ICMP6SLL = uint8(1) ICMP6TLL = uint8(2) )
Set of supported ICMPv6 options
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICMP ¶
type ICMP struct {
// contains filtered or unexported fields
}
An ICMP represents the ICMP header in the packet. Its state and functions handle parts of ICMP that are common to IPv4 and IPv6.
func (ICMP) Modify ¶
func (ICMP) Modify(fwdpb.PacketHeaderId) error
Modify returns an error as the ICMP header does not support adding extensions.
type ICMP4 ¶
type ICMP4 struct { ICMP // contains filtered or unexported fields }
An ICMP4 represents an ICMP4 header in the packet. It can update the ICMP header but it cannot add or remove an ICMP header. The ICMP message is assumed to contain the ICMP header and all bytes following it.
type ICMP6 ¶
type ICMP6 struct { ICMP // contains filtered or unexported fields }
An ICMP6 represents an ICMP header in the packet. It can update the ICMP header but it cannot add or remove an ICMP header. The ICMP message is assumed to contain the ICMP header and all bytes following it.
Note that the ICMP tracks only one instance of each optional field.