Documentation ¶
Overview ¶
Package tableutil contains utilites used to implement tables in Lucius like prefix, flow and exact match.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyDesc ¶
A KeyDesc describes the structure of a key as a sequence of packet field IDs. It can make keys from packets or entry descriptors.
func MakeKeyDesc ¶
func MakeKeyDesc(fields []*fwdpb.PacketFieldId) KeyDesc
MakeKeyDesc makes a keyDesc from a series of packet field id.
func (KeyDesc) MakePacketKey ¶
MakePacketKey makes a key from a packet. The key desc determines the sequence of fields used to create the key. If the key desc contains a field absent in the desc, then the corresponding bytes are set to zero. Each field is padded to the maximum size when forming the key.
Click to show internal directories.
Click to hide internal directories.