From 8c34c4cbb3780c433148966a004f5a51aace0f64 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Fri, 4 Aug 2017 16:15:53 +0200 Subject: First set of code review patches --- src/tun.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tun.go') diff --git a/src/tun.go b/src/tun.go index f529c54..d782bd5 100644 --- a/src/tun.go +++ b/src/tun.go @@ -9,6 +9,7 @@ const DefaultMTU = 1420 type TUNDevice interface { Read([]byte) (int, error) // read a packet from the device (without any additional headers) Write([]byte) (int, error) // writes a packet to the device (without any additional headers) + IsUp() (bool, error) // is the interface up? MTU() (int, error) // returns the MTU of the device Name() string // returns the current name } -- cgit v1.2.3