Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PrefixLen (4) + Port (2) + Proto (1) + Flags (1) + IP (4) KeySize = 12 ValueSize = 4 FlagOutbound = 1 // sizeof(port) + sizeof(proto) + sizeof(flags) ZeroCIDRPrefixLen = 32 )
View Source
const ( // PrefixLen (4) + Port (2) + Proto (1) + Flags (1) + IP (16) KeyV6Size = 24 ValueV6Size = 4 )
Variables ¶
View Source
var MapParams = maps.MapParameters{ Type: "lpm_trie", KeySize: KeySize, ValueSize: ValueSize, MaxEntries: 65536, Name: "cali_v4_fsafes", Flags: unix.BPF_F_NO_PREALLOC, Version: 2, }
View Source
var MapV6Params = maps.MapParameters{ Type: "lpm_trie", KeySize: KeyV6Size, ValueSize: ValueV6Size, MaxEntries: 65536, Name: "cali_v6_fsafes", Flags: unix.BPF_F_NO_PREALLOC, Version: 2, }
Functions ¶
Types ¶
type KeyInterface ¶
func KeyFromSlice ¶
func KeyFromSlice(data []byte) KeyInterface
func KeyV6FromSlice ¶
func KeyV6FromSlice(data []byte) KeyInterface
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CompleteDeferredWork ¶
func (*Manager) ResyncFailsafes ¶
Click to show internal directories.
Click to hide internal directories.