package
Version:
v0.0.0-...-77652f2
Opens a new window with list of versions in this module.
Published: Jul 25, 2022
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Gateway interface {
Table() *Routes
}
Gateway interfaces to router
type NextHop struct {
IP net.IP
}
NextHop represents nexthop / gateway
Router represents router
New constructs a new router
Table returns touting table
Routes represents array of routes
Add appends a new route to table and operating system
Delete removes a route from table and operating system
Dump prints out all routing table
Get returns nexthop for a specific dest.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.