aboutsummaryrefslogtreecommitdiff
path: root/src/device.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-08-22 17:22:45 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-08-22 17:22:45 +0200
commit4986cfe78b49173b8a9d86b9ec7e3024d0a3c218 (patch)
tree73444bb682a9ada96f5ea666551141a933cad174 /src/device.go
parentc6d03ef17f34f7380d95e91a6091a06bce332979 (diff)
downloadwireguard-go-4986cfe78b49173b8a9d86b9ec7e3024d0a3c218.tar.gz
wireguard-go-4986cfe78b49173b8a9d86b9ec7e3024d0a3c218.zip
Add support for fwmark on linux
Diffstat (limited to 'src/device.go')
-rw-r--r--src/device.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/device.go b/src/device.go
index 2a0d0ca..2ead768 100644
--- a/src/device.go
+++ b/src/device.go
@@ -21,9 +21,10 @@ type Device struct {
messageBuffers sync.Pool
}
net struct {
- mutex sync.RWMutex
- addr *net.UDPAddr // UDP source address
- conn *net.UDPConn // UDP "connection"
+ mutex sync.RWMutex
+ addr *net.UDPAddr // UDP source address
+ conn *net.UDPConn // UDP "connection"
+ fwmark int
}
mutex sync.RWMutex
privateKey NoisePrivateKey