Documentation ¶
Overview ¶
Package core contains the tables for remote SIGs, ASes and their prefixes
Index ¶
- Variables
- type ASEntry
- func (ae *ASEntry) AddNet(ipnet *net.IPNet) error
- func (ae *ASEntry) AddSig(id siginfo.SigIdType, ip net.IP, ctrlPort, encapPort int, static bool) error
- func (ae *ASEntry) Cleanup() error
- func (ae *ASEntry) DelNet(ipnet *net.IPNet) error
- func (ae *ASEntry) DelSig(id siginfo.SigIdType) error
- func (ae *ASEntry) ReloadConfig(cfg *config.ASEntry) bool
- type ASMap
- func (am *ASMap) ASEntry(ia addr.IA) *ASEntry
- func (am *ASMap) AddIA(ia addr.IA) (*ASEntry, error)
- func (am *ASMap) DelIA(ia addr.IA) error
- func (am *ASMap) Delete(key addr.IAInt)
- func (am *ASMap) Load(key addr.IAInt) (*ASEntry, bool)
- func (am *ASMap) LoadOrStore(key addr.IAInt, value *ASEntry) (*ASEntry, bool)
- func (am *ASMap) Range(f func(key addr.IAInt, value *ASEntry) bool)
- func (am *ASMap) ReloadConfig(cfg *config.Cfg) bool
- func (am *ASMap) Store(key addr.IAInt, value *ASEntry)
Constants ¶
This section is empty.
Variables ¶
View Source
var Map = &ASMap{}
Functions ¶
This section is empty.
Types ¶
type ASEntry ¶
type ASEntry struct { sync.RWMutex Nets map[string]*net.IPNet Sigs *siginfo.SigMap IA addr.IA IAString string log.Logger Session *session.Session // contains filtered or unexported fields }
ASEntry contains all of the information required to interact with a remote AS.
func (*ASEntry) AddSig ¶
func (ae *ASEntry) AddSig(id siginfo.SigIdType, ip net.IP, ctrlPort, encapPort int, static bool) error
AddSig idempotently adds a SIG for the remote IA.
type ASMap ¶
ASMap is not concurrency safe against multiple writers.
func (*ASMap) ASEntry ¶
ASEntry returns the entry for the specified remote IA, or nil if not present.
func (*ASMap) LoadOrStore ¶
Click to show internal directories.
Click to hide internal directories.