Documentation ¶
Index ¶
- Constants
- type CIDRMap
- func (cm *CIDRMap) CIDRDump(to []string) []string
- func (cm *CIDRMap) CIDRExists(cidr net.IPNet) bool
- func (cm *CIDRMap) CIDRNext(cidr *net.IPNet) *net.IPNet
- func (cm *CIDRMap) Close() error
- func (cm *CIDRMap) DeleteCIDR(cidr net.IPNet) error
- func (cm *CIDRMap) InsertCIDR(cidr net.IPNet) error
- func (cm *CIDRMap) String() string
Constants ¶
View Source
const ( MapName = "cilium_cidr_" MaxEntries = 16384 )
View Source
const (
LPM_MAP_VALUE_SIZE = 1
)
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 Prefixlen uint32 // PrefixIsDynamic determines whether it's valid for entries to have // a prefix length that is not equal to the Prefixlen above PrefixIsDynamic bool // contains filtered or unexported fields }
CIDRMap refers to an LPM trie map at 'path'.
func OpenMapElems ¶ added in v1.5.0
func OpenMapElems(path string, prefixlen int, prefixdyn bool, maxelem uint32) (*CIDRMap, bool, error)
OpenMapElems is the same as OpenMap only with defined maxelem as argument.
func (*CIDRMap) CIDRExists ¶
CIDRExists returns true if 'cidr' exists in map 'cm'
func (*CIDRMap) DeleteCIDR ¶ added in v1.5.0
DeleteCIDR deletes an entry from 'cm' with key 'cidr'.
func (*CIDRMap) InsertCIDR ¶ added in v1.5.0
InsertCIDR inserts an entry to 'cm' with key 'cidr'. Value is currently not used.
Click to show internal directories.
Click to hide internal directories.