Documentation
¶
Index ¶
Constants ¶
View Source
const ( IPv4_MSG = 0x0800 ARP_MSG = 0x0806 LLDP_MSG = 0x88cc WOL_MSG = 0x0842 RARP_MSG = 0x8035 VLAN_MSG = 0x8100 IPv6_MSG = 0x86DD STP_MSG = 0x4242 STP_BPDU_MSG = 0xAAAA )
see http://en.wikipedia.org/wiki/EtherType
View Source
const ( PCP_MASK = 0xe000 DEI_MASK = 0x1000 VID_MASK = 0x0fff )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ethernet ¶
type Ethernet struct {
Delimiter uint8
HWDst net.HardwareAddr
HWSrc net.HardwareAddr
VLANID VLAN
Ethertype uint16
Data util.Message
}
func (*Ethernet) MarshalBinary ¶
func (*Ethernet) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.