diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-06-26 13:14:02 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-06-26 13:14:02 +0200 |
commit | 9d806d3853c926df75e83966d2c4f832708a1b08 (patch) | |
tree | 97dd50a56751d5cb48b60353697aa9ccad9a3e14 /src/device.go | |
parent | cf3a5130d3aa53fc56c7c3194ee326d5a1d21970 (diff) | |
download | wireguard-go-9d806d3853c926df75e83966d2c4f832708a1b08.tar.gz wireguard-go-9d806d3853c926df75e83966d2c4f832708a1b08.zip |
Begin work on outbound packet flow
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) { |