arping_windows.go 585 B

1234567891011121314151617181920212223242526272829
  1. // windows currently not supported.
  2. // dummy implementation to prevent compilation errors under windows
  3. package arping
  4. import (
  5. "errors"
  6. "net"
  7. "time"
  8. )
  9. var errWindowsNotSupported = errors.New("arping under windows not supported")
  10. func initialize(iface net.Interface) error {
  11. return errWindowsNotSupported
  12. }
  13. func send(request arpDatagram) (time.Time, error) {
  14. return time.Now(), errWindowsNotSupported
  15. }
  16. func receive() (arpDatagram, time.Time, error) {
  17. return arpDatagram{}, time.Now(), errWindowsNotSupported
  18. }
  19. func deinitialize() error {
  20. return errWindowsNotSupported
  21. }