Files
zeromesh/internal/tap/tap_stub.go

22 lines
409 B
Go

//go:build !linux
package tap
import "fmt"
func openTap(_ string, _ int) (*Interface, error) {
return nil, fmt.Errorf("TAP devices are only supported on Linux")
}
func readBuf(_ int, _ []byte) (int, error) {
return 0, fmt.Errorf("not supported")
}
func writeBuf(_ int, _ []byte) (int, error) {
return 0, fmt.Errorf("not supported")
}
func closeFD(_ int) error {
return fmt.Errorf("not supported")
}