modulepackage
0.0.0-20220221185849-529eae5b6118
Repository: https://github.com/mdlayher/ethernet.git
Documentation: pkg.go.dev
# README
ethernet

Package ethernet
implements marshaling and unmarshaling of IEEE 802.3
Ethernet II frames and IEEE 802.1Q VLAN tags. MIT Licensed.
For more information about using Ethernet frames in Go, check out my blog post: Network Protocol Breakdown: Ethernet and Go.
# Packages
No description provided by the author
# Constants
Common EtherType values frequently used in a Frame.
Common EtherType values frequently used in a Frame.
Common EtherType values frequently used in a Frame.
Common EtherType values frequently used in a Frame.
EtherTypeVLAN and EtherTypeServiceVLAN are used as 802.1Q Tag Protocol Identifiers (TPIDs).
IEEE P802.1p recommended priority levels.
IEEE P802.1p recommended priority levels.
IEEE P802.1p recommended priority levels.
IEEE P802.1p recommended priority levels.
IEEE P802.1p recommended priority levels.
IEEE P802.1p recommended priority levels.
IEEE P802.1p recommended priority levels.
IEEE P802.1p recommended priority levels.
VLANMax is a reserved VLAN ID which may indicate a wildcard in some management systems, but may not be configured or transmitted in a VLAN tag.
VLANNone is a special VLAN ID which indicates that no VLAN is being used in a Frame.
# Variables
Broadcast is a special hardware address which indicates a Frame should be sent to every device on a given LAN segment.
ErrInvalidFCS is returned when Frame.UnmarshalFCS detects an incorrect Ethernet frame check sequence in a byte slice for a Frame.
ErrInvalidVLAN is returned when a VLAN tag is invalid due to one of the following reasons: - Priority of greater than 7 is detected - ID of greater than 4094 (0xffe) is detected - A customer VLAN does not follow a service VLAN (when using Q-in-Q).