Documentation ¶
Index ¶
Constants ¶
View Source
const ( MAX_KEYS = 1024 LPM_MAP_VALUE_SIZE = 1 )
View Source
const (
MapName = "cilium_cidr_"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CIDRMap ¶
type CIDRMap struct { Fd int AddrSize int // max prefix length in bytes, 4 for IPv4, 16 for IPv6 // contains filtered or unexported fields }
CIDRMap refers to an LPM trie map at 'path'.
func OpenMap ¶
OpenMap opens a new CIDRMap. 'bool' returns 'true' if the map was created, and 'false' if the map already existed.
func (*CIDRMap) AllowCIDR ¶
AllowCIDR inserts an entry to 'cm' with key 'cidr'. Value is currently not used.
func (*CIDRMap) CIDRExists ¶
CIDRExists returns true if 'cidr' exists in map 'cm'
Click to show internal directories.
Click to hide internal directories.