Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface struct { Stack *stack.Stack // Userspace networking Stack // contains filtered or unexported fields }
Interface acts as a network interface that can be accessed remotely
func (*Interface) ExposeRoutes ¶
ExposeRoutes allows the caller to expose routes to the remote network interface. This should only be called on Exit interfaces, entrance interfaces will automatically expose all routes.
type Mode ¶
type Mode uint
Mode determines how the Interface operates. In Entrance mode, the routes determine whether packets are forwarded to the Exit interface. In Exit mode, the routes determine what packets are allowed to be forwarded. We always route from entrance -> exit, not the other way around.
Click to show internal directories.
Click to hide internal directories.