Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagInIPAMPool Flags = 0x01 FlagNATOutgoing Flags = 0x02 FlagWorkload Flags = 0x04 FlagLocal Flags = 0x08 FlagHost Flags = 0x10 FlagSameSubnet Flags = 0x20 FlagTunneled Flags = 0x40 FlagNoDSR Flags = 0x80 FlagsUnknown Flags = 0 FlagsRemoteWorkload = FlagWorkload FlagsRemoteHost = FlagHost FlagsLocalHost = FlagLocal | FlagHost FlagsLocalWorkload = FlagLocal | FlagWorkload FlagsRemoteTunneledHost = FlagsRemoteHost | FlagTunneled FlagsLocalTunneledHost = FlagsLocalHost | FlagTunneled )
View Source
const KeySize = 8
struct cali_rt_key { __u32 mask; __be32 addr; // NBO };
View Source
const ValueSize = 8
struct cali_rt_value { __u32 flags; union { __u32 next_hop; __u32 ifIndex; }; };
Variables ¶
View Source
var MapParameters = maps.MapParameters{ Type: "lpm_trie", KeySize: KeySize, ValueSize: ValueSize, MaxEntries: 256 * 1024, Name: "cali_v4_routes", Flags: unix.BPF_F_NO_PREALLOC, }
Functions ¶
func SetMapSize ¶
func SetMapSize(size int)
Types ¶
Click to show internal directories.
Click to hide internal directories.