diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-15 16:27:59 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-15 16:27:59 +0200 |
commit | dd4da93749fd9a8a231942a6b75ad137cc308e02 (patch) | |
tree | 187c4d0257e4216ea332cd09d19f6b50041b0791 /src/tun.go | |
parent | b21c82e32d955e15d846aed87535b6d728ab1d0b (diff) |
Added padding
Added plaintext padding and fixed default interface MTU
Diffstat (limited to 'src/tun.go')
-rw-r--r-- | src/tun.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |