From d2ac4607bbdbdcf1de3864784b3464275857a4ba Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Sat, 15 Aug 2015 17:05:24 -0400 Subject: [PATCH] Multi-platform support --- syscalls_other.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 syscalls_other.go diff --git a/syscalls_other.go b/syscalls_other.go new file mode 100644 index 0000000..d291ead --- /dev/null +++ b/syscalls_other.go @@ -0,0 +1,19 @@ +// +build !linux + +package water + +const ( + cIFF_TUN = 0 + cIFF_TAP = 0 + cIFF_NO_PI = 0 +) + +type ifReq struct { + Name [0]byte + Flags uint16 + pad [0]byte +} + +func createInterface(fd uintptr, ifName string, flags uint16) (createdIFName string, err error) { + panic("water: createInterface not implemented on this platform") +} \ No newline at end of file