mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
29 lines
585 B
Go
29 lines
585 B
Go
// windows currently not supported.
|
|
// dummy implementation to prevent compilation errors under windows
|
|
|
|
package arping
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
var errWindowsNotSupported = errors.New("arping under windows not supported")
|
|
|
|
func initialize(iface net.Interface) error {
|
|
return errWindowsNotSupported
|
|
}
|
|
|
|
func send(request arpDatagram) (time.Time, error) {
|
|
return time.Now(), errWindowsNotSupported
|
|
}
|
|
|
|
func receive() (arpDatagram, time.Time, error) {
|
|
return arpDatagram{}, time.Now(), errWindowsNotSupported
|
|
}
|
|
|
|
func deinitialize() error {
|
|
return errWindowsNotSupported
|
|
}
|