Documentation
¶
Index ¶
- Constants
- Variables
- func DHCP6EncodeList(elements []string) (encoded []byte)
- func DHCP6For(what dhcp6.MessageType, to dhcp6.Packet, duid []byte) (err error, p dhcp6.Packet)
- func NewARP(from net.IP, from_hw net.HardwareAddr, to net.IP, req uint16) (layers.Ethernet, layers.ARP)
- func NewARPReply(from net.IP, from_hw net.HardwareAddr, to net.IP, to_hw net.HardwareAddr) (error, []byte)
- func NewARPRequest(from net.IP, from_hw net.HardwareAddr, to net.IP) (error, []byte)
- func NewARPTo(from net.IP, from_hw net.HardwareAddr, to net.IP, to_hw net.HardwareAddr, ...) (layers.Ethernet, layers.ARP)
- func NewUDPProbe(from net.IP, from_hw net.HardwareAddr, to net.IP, port int) (error, []byte)
- func Serialize(layers ...gopacket.SerializableLayer) (error, []byte)
- type Activity
- type DHCPv6Layer
- type Queue
- type Traffic
Constants ¶
View Source
const DHCP6OptClientFQDN = 39
View Source
const DHCP6OptDNSDomains = 24
View Source
const DHCP6OptDNSServers = 23
View Source
const IPv6Prefix = "fe80::"
link-local
Variables ¶
View Source
var (
ErrNoCID = errors.New("Unexpected DHCPv6 packet, could not find client id.")
)
Functions ¶
func DHCP6EncodeList ¶
func NewARPReply ¶
func NewARPReply(from net.IP, from_hw net.HardwareAddr, to net.IP, to_hw net.HardwareAddr) (error, []byte)
func NewARPRequest ¶
func NewUDPProbe ¶
Types ¶
type DHCPv6Layer ¶
type DHCPv6Layer struct {
Raw []byte
}
func (DHCPv6Layer) SerializeTo ¶
func (l DHCPv6Layer) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
Click to show internal directories.
Click to hide internal directories.