summaryrefslogtreecommitdiff
path: root/src/device.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-06-26 22:07:29 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-06-26 22:07:29 +0200
commiteb75ff430d1f78e129bbfe49d612f241ca418df4 (patch)
treeca9a786c1df51c1404001555b1c1c9d425d0b614 /src/device.go
parent9d806d3853c926df75e83966d2c4f832708a1b08 (diff)
downloadwireguard-go-eb75ff430d1f78e129bbfe49d612f241ca418df4.tar.gz
wireguard-go-eb75ff430d1f78e129bbfe49d612f241ca418df4.zip
Begin implementation of outbound work queue
Diffstat (limited to 'src/device.go')
-rw-r--r--src/device.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.go b/src/device.go
index ce10a63..4b8cda0 100644
--- a/src/device.go
+++ b/src/device.go
@@ -2,11 +2,14 @@ package main
import (
"log"
+ "net"
"sync"
)
type Device struct {
mtu int
+ source *net.UDPAddr // UDP source address
+ conn *net.UDPConn // UDP "connection"
mutex sync.RWMutex
peers map[NoisePublicKey]*Peer
indices IndexTable