Documentation ¶
Overview ¶
Package udp implements the UDP header support in Lucius.
Index ¶
- type UDP
- func (udp *UDP) Field(id fwdpacket.FieldID) ([]byte, error)
- func (udp *UDP) Header() []byte
- func (UDP) ID(int) fwdpb.PacketHeaderId
- func (UDP) Modify(_ fwdpb.PacketHeaderId) error
- func (udp *UDP) Rebuild() error
- func (udp *UDP) Remove(id fwdpb.PacketHeaderId) error
- func (UDP) Trailer() []byte
- func (udp *UDP) 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 UDP ¶
type UDP struct {
// contains filtered or unexported fields
}
An UDP represents a UDP header in the packet. It can add, remove and update the UDP header. The UDP payload is treated as OPAQUE.
func (UDP) Modify ¶
func (UDP) Modify(_ fwdpb.PacketHeaderId) error
Modify returns an error as the UDP header has not extensions.
Click to show internal directories.
Click to hide internal directories.