github.com/keysonzzz/kmg@v0.0.0-20151121023212-05317bfd7d39/kmgSys/taptun_other.go (about)

     1  // +build !linux,!darwin
     2  
     3  package kmgSys
     4  
     5  // Create a new TAP interface whose name is ifName.
     6  // If ifName is empty, a default name (tap0, tap1, ... ) will be assigned.
     7  // ifName should not exceed 16 bytes.
     8  func NewTap(ifName string) (ifce TunTapInterface, err error) {
     9  	return nil, ErrPlatformNotSupport
    10  }
    11  
    12  // Create a new TUN interface whose name is ifName.
    13  // If ifName is empty, a default name (tap0, tap1, ... ) will be assigned.
    14  // ifName should not exceed 16 bytes.
    15  func NewTun(ifName string) (ifce TunTapInterface, err error) {
    16  	return nil, ErrPlatformNotSupport
    17  }
    18  
    19  func NewTunNoName() (ifce TunTapInterface, err error) {
    20  	return nil, ErrPlatformNotSupport
    21  }