X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Ftap.go;h=f24630a1e59067acacbd305b711f77f19f677ea4;hb=c259296effa4a44103dcac563c6f7e30e436bb34;hp=5a71f1f1acb23346c35f5ecb97dcfb2508eb5b2a;hpb=9f7abcad309afd709a1f16cdf961837bb9510036;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/tap.go b/src/cypherpunks.ru/govpn/tap.go index 5a71f1f..f24630a 100644 --- a/src/cypherpunks.ru/govpn/tap.go +++ b/src/cypherpunks.ru/govpn/tap.go @@ -33,7 +33,7 @@ var ( taps = make(map[string]*TAP) ) -// NewTAP create a new TUN/TAP virtual interface +// NewTAP creates a new TUN/TAP virtual interface func NewTAP(ifaceName string, mtu int) (*TAP, error) { tapRaw, err := newTAPer(ifaceName) if err != nil { @@ -72,7 +72,7 @@ func (t *TAP) Write(data []byte) (n int, err error) { return t.dev.Write(data) } -// TAPListen open an existing TAP, if none exists, open one +// TAPListen opens an existing TAP (creates if none exists) func TAPListen(ifaceName string, mtu int) (*TAP, error) { tap, exists := taps[ifaceName] if exists {