浏览代码

Multi-platform support

Harshal Sheth 10 年之前
父节点
当前提交
d2ac4607bb
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      syscalls_other.go

+ 19 - 0
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")
+}