Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthernetWithTrailer ¶
type EthernetWithTrailer struct { layers.BaseLayer SrcMAC, DstMAC net.HardwareAddr EthernetType layers.EthernetType // Length is only set if a length field exists within this header. Ethernet // headers follow two different standards, one that uses an EthernetType, the // other which defines a length the follows with a LLC header (802.3). If the // former is the case, we set EthernetType and Length stays 0. In the latter // case, we set Length and EthernetType = EthernetTypeLLC. Length uint16 Trailer []byte }
EthernetWithTrailer is the layer for Ethernet frame headers.
func (*EthernetWithTrailer) LayerType ¶
func (e *EthernetWithTrailer) LayerType() gopacket.LayerType
LayerType returns LayerTypeEthernet
func (*EthernetWithTrailer) SerializeTo ¶
func (e *EthernetWithTrailer) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
SerializeTo writes the serialized form of this layer into the SerializationBuffer, implementing gopacket.SerializableLayer. See the docs for gopacket.SerializableLayer for more info.
Click to show internal directories.
Click to hide internal directories.