From dd4da93749fd9a8a231942a6b75ad137cc308e02 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Sat, 15 Jul 2017 16:27:59 +0200 Subject: Added padding Added plaintext padding and fixed default interface MTU --- src/tun.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tun.go') diff --git a/src/tun.go b/src/tun.go index 85735a6..f529c54 100644 --- a/src/tun.go +++ b/src/tun.go @@ -1,5 +1,11 @@ package main +/* + * The default MTU of the new device must be 1420 + */ + +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) -- cgit v1.2.3-59-g8ed1b