summaryrefslogtreecommitdiffhomepage
path: root/src/device.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.go')
-rw-r--r--src/device.go20
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) {