Documentation ¶
Overview ¶
Automatically generated by Packet Go code generator.
Index ¶
- func IsEthernet(p packet.Packet) bool
- type EtherType
- type Ethernet
- func (this Ethernet) Clone() (Ethernet, error)
- func (this Ethernet) DstMac() [6]uint8
- func (this Ethernet) DstMacOffset() int
- func (this *Ethernet) Init()
- func (this *Ethernet) SetDstMac(d [6]uint8)
- func (this *Ethernet) SetSrcMac(s [6]uint8)
- func (this *Ethernet) SetType(t uint16)
- func (this Ethernet) Size() int
- func (this Ethernet) SrcMac() [6]uint8
- func (this Ethernet) SrcMacOffset() int
- func (this Ethernet) Type() uint16
- func (this Ethernet) TypeOffset() int
- type EthernetConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEthernet ¶
Types ¶
type Ethernet ¶
func NewEthernet ¶
func NewEthernet() Ethernet
func NewEthernetWithBuf ¶
func (Ethernet) DstMacOffset ¶
func (Ethernet) SrcMacOffset ¶
func (Ethernet) TypeOffset ¶
type EthernetConn ¶
func NewEthernetConn ¶
func NewEthernetConn(c net.Conn) EthernetConn
func (*EthernetConn) Flush ¶
func (c *EthernetConn) Flush() error
func (*EthernetConn) ReadEthernet ¶
func (c *EthernetConn) ReadEthernet() (Ethernet, error)
func (*EthernetConn) ReadEthernets ¶
func (c *EthernetConn) ReadEthernets(pkts []Ethernet) (int, error)
func (*EthernetConn) WriteEthernet ¶
func (c *EthernetConn) WriteEthernet(pkt Ethernet) error
func (*EthernetConn) WriteEthernets ¶
func (c *EthernetConn) WriteEthernets(pkts []Ethernet) error
Click to show internal directories.
Click to hide internal directories.