Documentation ¶
Overview ¶
Package opaque implements the opaque packet header.
Index ¶
- type Opaque
- func (op *Opaque) Field(id fwdpacket.FieldID) ([]byte, error)
- func (op *Opaque) Header() []byte
- func (Opaque) ID(int) fwdpb.PacketHeaderId
- func (Opaque) Modify(fwdpb.PacketHeaderId) error
- func (Opaque) Rebuild() error
- func (Opaque) Remove(fwdpb.PacketHeaderId) error
- func (Opaque) Trailer() []byte
- func (op *Opaque) UpdateField(id fwdpacket.FieldID, oper int, arg []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opaque ¶
type Opaque struct {
// contains filtered or unexported fields
}
An Opaque represents payload that cannot be parsed by Lucius. Note opaque payload cannot be added or removed.
func (Opaque) Modify ¶
func (Opaque) Modify(fwdpb.PacketHeaderId) error
Modify returns an error as the opaque header's type cannot be modified.
Click to show internal directories.
Click to hide internal directories.