Documentation
¶
Overview ¶
Package arp implements the ARP header.
Index ¶
- type ARP
- func (a *ARP) Field(id fwdpacket.FieldID) ([]byte, error)
- func (a *ARP) Header() []byte
- func (ARP) ID(int) fwdpb.PacketHeaderId
- func (ARP) Modify(fwdpb.PacketHeaderId) error
- func (ARP) Rebuild() error
- func (ARP) Remove(fwdpb.PacketHeaderId) error
- func (ARP) Trailer() []byte
- func (a *ARP) UpdateField(id fwdpacket.FieldID, op int, arg []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ARP ¶
type ARP struct {
// contains filtered or unexported fields
}
An ARP is an ARP header. It can parse, query and operate on an ARP header in the packet. However it cannot add a new ARP header to a packet.
func (ARP) Modify ¶
func (ARP) Modify(fwdpb.PacketHeaderId) error
Modify returns an error as the ARP header does not support extensions.
Click to show internal directories.
Click to hide internal directories.