Documentation
¶
Overview ¶
Package router provides network routing capabilities for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router provides routing capabilities.
func (*Router) Attach ¶
func (r *Router) Attach(dev packet.NetworkDevice)
Attach attaches a packet.NetworkDevice to the *Router reading packets from the router and setting up routes for all the device addresses to correctly forward packets back to the device.
Click to show internal directories.
Click to hide internal directories.