aboutsummaryrefslogtreecommitdiffstats
path: root/src/uapi_linux.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-20 15:06:24 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-20 15:06:24 +0200
commit47f8a3d89ad0d1478246bf62140eb4fbfe83ac72 (patch)
tree6842d0c3617c4a621ff12ad7749d7eaa77b2bd66 /src/uapi_linux.go
parentAdded last_handshake_time fields to UAPI (diff)
downloadwireguard-go-47f8a3d89ad0d1478246bf62140eb4fbfe83ac72.tar.xz
wireguard-go-47f8a3d89ad0d1478246bf62140eb4fbfe83ac72.zip
Moved remaining platform dependent UAPI code
Diffstat (limited to 'src/uapi_linux.go')
-rw-r--r--src/uapi_linux.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/uapi_linux.go b/src/uapi_linux.go
index ee6ee0b..1055dca 100644
--- a/src/uapi_linux.go
+++ b/src/uapi_linux.go
@@ -2,11 +2,20 @@ package main
import (
"fmt"
+ "golang.org/x/sys/unix"
"net"
"os"
"time"
)
+const (
+ ipcErrorIO = int64(unix.EIO)
+ ipcErrorNoPeer = int64(unix.EPROTO)
+ ipcErrorNoKeyValue = int64(unix.EPROTO)
+ ipcErrorInvalidKey = int64(unix.EPROTO)
+ ipcErrorInvalidValue = int64(unix.EPROTO)
+)
+
/* TODO:
* This code can be improved by using fsnotify once:
* https://github.com/fsnotify/fsnotify/pull/205