Documentation ¶
Index ¶
- type RouteTable
- func (t RouteTable) Add(p netip.Prefix, value interface{})
- func (t RouteTable) Clear()
- func (t RouteTable) Delete(p netip.Prefix) (value interface{}, ok bool)
- func (t RouteTable) Dump(w io.Writer)
- func (t RouteTable) Get(p netip.Prefix) (value interface{}, ok bool)
- func (t RouteTable) LookupCIDR(p netip.Prefix) (route netip.Prefix, value interface{})
- func (t RouteTable) LookupIP(ip netip.Addr) (route netip.Prefix, value interface{})
- func (t RouteTable) Size() int
- func (t RouteTable) Walk(callback func(prefix netip.Prefix, value interface{}) bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteTable ¶
type RouteTable struct {
// contains filtered or unexported fields
}
IP routing table.
func (RouteTable) Delete ¶
func (t RouteTable) Delete(p netip.Prefix) (value interface{}, ok bool)
Delete a specific route.
func (RouteTable) Get ¶
func (t RouteTable) Get(p netip.Prefix) (value interface{}, ok bool)
Get a specific route.
func (RouteTable) LookupCIDR ¶
func (t RouteTable) LookupCIDR(p netip.Prefix) (route netip.Prefix, value interface{})
Return a specific route by using the longest prefix matching.
Click to show internal directories.
Click to hide internal directories.