]> Cypherpunks.ru repositories - govpn.git/blobdiff - tap.go
Use A-EKE instead of EKE. Doc refactoring. Preparing for 3.0 release
[govpn.git] / tap.go
diff --git a/tap.go b/tap.go
index 8a19df344530ef7e181a92ce4790c68b9ad2fe44..a80795534a70adf431b183c5d339e2ca61c51706 100644 (file)
--- a/tap.go
+++ b/tap.go
@@ -37,6 +37,8 @@ type TAP struct {
        synced bool
 }
 
+// Return maximal acceptable TAP interface MTU. This is daemon's MTU
+// minus nonce, MAC, packet size mark and Ethernet header sizes.
 func TAPMaxMTU() int {
        return MTU - poly1305.TagSize - NonceSize - PktSizeSize - EtherSize
 }