Documentation
¶
Overview ¶
Package geolink models a geographic point-to-point link.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extend ¶
func Extend(dev packet.NetworkDevice, config *Config) packet.NetworkDevice
Extend creates a geographic link between the given device and the returned device.
Internally, this creates the following link:
external <=> dev
where:
- dev is the device passed as argument
- external is the device returned to the caller
Packets flowing through this chain experience the configured delay in both directions.
We create two goroutines for forwarding packets, which are closed when dev is closed.
Types ¶
Click to show internal directories.
Click to hide internal directories.