diff options
Diffstat (limited to 'src/device.go')
-rw-r--r-- | src/device.go | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/device.go b/src/device.go index 9969034..ce10a63 100644 --- a/src/device.go +++ b/src/device.go @@ -1,18 +1,22 @@ package main import ( + "log" "sync" ) type Device struct { - mutex sync.RWMutex - peers map[NoisePublicKey]*Peer - indices IndexTable - privateKey NoisePrivateKey - publicKey NoisePublicKey - fwMark uint32 - listenPort uint16 - routingTable RoutingTable + mtu int + mutex sync.RWMutex + peers map[NoisePublicKey]*Peer + indices IndexTable + privateKey NoisePrivateKey + publicKey NoisePublicKey + fwMark uint32 + listenPort uint16 + routingTable RoutingTable + logger log.Logger + queueWorkOutbound chan *OutboundWorkQueueElement } func (device *Device) SetPrivateKey(sk NoisePrivateKey) { |