Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeARPReply = Type("PAYLOAD_ARP_REPLY")
TypeARPReply is the payload type for an ARP Reply
View Source
var TypeICMPEcho = Type("PAYLOAD_ICMP_ECHO_REQUEST")
TypeICMPEcho is the payload type for an ICMP Echo Request
Functions ¶
func ARPReply ¶
ARPReply returns a wire-ready Ethernet frame encapsulating an (unsolicited) ARP reply
func ICMPEchoReq ¶
ICMPEchoReq returns a wire-ready Ethernet frame encapsulating an IPv4 packet carrying an ICMP Echo Request
Types ¶
type Config ¶
type Config struct { SrcIP net.IP DstIP net.IP SrcMAC net.HardwareAddr DstMAC net.HardwareAddr }
Config carries the payload configuration
Click to show internal directories.
Click to hide internal directories.