)
// Return maximal acceptable TAP interface MTU. This is daemon's MTU
-// minus nonce, MAC, packet size mark and Ethernet header sizes.
+// minus nonce, MAC, pad and Ethernet header sizes.
func TAPMaxMTU() int {
- return MTU - poly1305.TagSize - NonceSize - PktSizeSize - EtherSize
+ return MTU - poly1305.TagSize - NonceSize - 1 - EtherSize
}
func NewTAP(ifaceName string) (*TAP, error) {