Documentation ¶
Index ¶
Constants ¶
View Source
const HeaderEthernetIp4Bytes = 8 + 6 + 4
Variables ¶
This section is empty.
Functions ¶
func GetPacketHeader ¶
func GetPacketHeader(r *vnet.Ref) vnet.PacketHeader
Types ¶
type EthernetIp4Addr ¶
Typical case for arp: ip4 over ethernet.
type Header ¶
type HeaderEthernetIp4 ¶
type HeaderEthernetIp4 struct { Header Addrs [2]EthernetIp4Addr }
func GetHeader ¶
func GetHeader(r *vnet.Ref) *HeaderEthernetIp4
func (*HeaderEthernetIp4) Len ¶
func (h *HeaderEthernetIp4) Len() uint
Implement vnet.Header interface.
func (*HeaderEthernetIp4) Read ¶
func (h *HeaderEthernetIp4) Read(b []byte) vnet.PacketHeader
func (*HeaderEthernetIp4) String ¶
func (h *HeaderEthernetIp4) String() (s string)
func (*HeaderEthernetIp4) Write ¶
func (h *HeaderEthernetIp4) Write(b []byte)
Click to show internal directories.
Click to hide internal directories.