Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxSubPrograms is the maximum number of policy sub-programs that // we allow for a single hook. BPF allows a maximum of 32 tail calls // (so 33 chained programs in total) but we reserve some for our own use. MaxSubPrograms = 24 // TCMaxEntryPoints is the maximum number of policy program entry points // (i.e. first program in a chain of sub-programs for the policy). TCMaxEntryPoints = 10000 // TCMaxEntries is the size fo the map, i.e. all possible sub-programs. TCMaxEntries = TCMaxEntryPoints * MaxSubPrograms XDPMaxEntryPoints = 100 XDPMaxEntries = XDPMaxEntryPoints * MaxSubPrograms )
Variables ¶
View Source
var MapParameters = maps.MapParameters{ Type: "prog_array", KeySize: 4, ValueSize: 4, MaxEntries: TCMaxEntries, Name: "cali_jump", Version: 3, }
View Source
var XDPMapParameters = maps.MapParameters{ Type: "prog_array", KeySize: 4, ValueSize: 4, MaxEntries: XDPMaxEntries, Name: "xdp_cali_jump", Version: 3, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.