aboutsummaryrefslogtreecommitdiffstats
path: root/src/tun.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tun.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tun.go b/src/tun.go
new file mode 100644
index 0000000..1a8bb82
--- /dev/null
+++ b/src/tun.go
@@ -0,0 +1,8 @@
+package main
+
+type TUN interface {
+ Read([]byte) (int, error)
+ Write([]byte) (int, error)
+ Name() string
+ MTU() uint
+}