Documentation ¶
Index ¶
- type LocRIB
- func (a *LocRIB) AddPath(pfx *net.Prefix, p *route.Path) error
- func (a *LocRIB) AddPathInitialDump(pfx *net.Prefix, p *route.Path) error
- func (a *LocRIB) ClientCount() uint64
- func (a *LocRIB) ContainsPfxPath(pfx *net.Prefix, p *route.Path) bool
- func (a *LocRIB) Count() uint64
- func (a *LocRIB) Dispose()
- func (a *LocRIB) Dump() []*route.Route
- func (a *LocRIB) Get(pfx *net.Prefix) *route.Route
- func (a *LocRIB) GetContributingASNs() *routingtable.ContributingASNs
- func (a *LocRIB) GetLonger(pfx *net.Prefix) (res []*route.Route)
- func (a *LocRIB) LPM(pfx *net.Prefix) (res []*route.Route)
- func (a *LocRIB) Name() string
- func (a *LocRIB) Print() string
- func (a *LocRIB) RefreshClient(client routingtable.RouteTableClient)
- func (a *LocRIB) RefreshRoute(*net.Prefix, []*route.Path)
- func (a *LocRIB) Register(client routingtable.RouteTableClient)
- func (a *LocRIB) RegisterWithOptions(client routingtable.RouteTableClient, opt routingtable.ClientOptions)
- func (a *LocRIB) RemovePath(pfx *net.Prefix, p *route.Path) bool
- func (a *LocRIB) ReplaceFilterChain(filter.Chain)
- func (a *LocRIB) ReplacePath(pfx *net.Prefix, oldPath *route.Path, newPath *route.Path)
- func (a *LocRIB) RouteCount() int64
- func (a *LocRIB) SetCountTarget(count uint64, ch chan struct{})
- func (a *LocRIB) String() string
- func (a *LocRIB) Unregister(client routingtable.RouteTableClient)
- func (a *LocRIB) UpdateNewClient(client routingtable.RouteTableClient) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocRIB ¶
type LocRIB struct {
// contains filtered or unexported fields
}
LocRIB represents a routing information base
func (*LocRIB) AddPath ¶
AddPath replaces the path for prefix `pfx`. If the prefix doesn't exist it is added.
func (*LocRIB) AddPathInitialDump ¶
func (*LocRIB) ClientCount ¶
ClientCount gets the number of registered clients
func (*LocRIB) ContainsPfxPath ¶
ContainsPfxPath returns true if this prefix and path combination is present in this LocRIB.
func (*LocRIB) Dispose ¶
func (a *LocRIB) Dispose()
Dispose tells all clients that this LocRIB is not to be used anymore (this can happen when RIS loses a BMP connection)
func (*LocRIB) GetContributingASNs ¶
func (a *LocRIB) GetContributingASNs() *routingtable.ContributingASNs
GetContributingASNs returns a pointer to the list of contributing ASNs
func (*LocRIB) RefreshClient ¶
func (a *LocRIB) RefreshClient(client routingtable.RouteTableClient)
RefreshClient re-sends all propagated paths to a certain client
func (*LocRIB) RefreshRoute ¶
RefreshRoute is here to fulfill an interface
func (*LocRIB) Register ¶
func (a *LocRIB) Register(client routingtable.RouteTableClient)
Register registers a client for updates
func (*LocRIB) RegisterWithOptions ¶
func (a *LocRIB) RegisterWithOptions(client routingtable.RouteTableClient, opt routingtable.ClientOptions)
RegisterWithOptions registers a client with options for updates
func (*LocRIB) RemovePath ¶
RemovePath removes the path for prefix `pfx`
func (*LocRIB) ReplaceFilterChain ¶
ReplaceFilterChain is here to fulfill an interface
func (*LocRIB) ReplacePath ¶
func (*LocRIB) RouteCount ¶
RouteCount returns the number of stored routes
func (*LocRIB) SetCountTarget ¶
SetCountTarget sets a target and a channel to send a message to when a certain route count is reached
func (*LocRIB) Unregister ¶
func (a *LocRIB) Unregister(client routingtable.RouteTableClient)
Unregister unregisters a client
func (*LocRIB) UpdateNewClient ¶
func (a *LocRIB) UpdateNewClient(client routingtable.RouteTableClient) error
UpdateNewClient sends current state to a new client