27 lines
456 B
Go
27 lines
456 B
Go
//go:build !linux
|
|
|
|
package sdk
|
|
|
|
import "fmt"
|
|
|
|
type tapInterface struct {
|
|
Name string
|
|
MTU int
|
|
}
|
|
|
|
func openTap(name string, mtu int) (*tapInterface, error) {
|
|
return nil, fmt.Errorf("TAP device requires Linux")
|
|
}
|
|
|
|
func (ti *tapInterface) Read(buf []byte) (int, error) {
|
|
return 0, fmt.Errorf("not supported")
|
|
}
|
|
|
|
func (ti *tapInterface) Write(buf []byte) error {
|
|
return fmt.Errorf("not supported")
|
|
}
|
|
|
|
func (ti *tapInterface) Close() error {
|
|
return nil
|
|
}
|