File: arping_windows.go

package info (click to toggle)
golang-github-j-keck-arping 0.0~git20160618.2cf9dc6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 92 kB
  • sloc: makefile: 3
file content (28 lines) | stat: -rw-r--r-- 585 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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
}