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