goipgrep: refactor into module; pure-Go ping/resolve; cache+CI; drop binary

This commit is contained in:
tobias
2026-02-17 09:26:30 +01:00
parent 27760b0bf1
commit a931be4707
20 changed files with 1214 additions and 376 deletions

View File

@@ -0,0 +1,23 @@
//go:build !linux
package resolve
import "fmt"
type NeighborTable struct {
ByMAC map[string][]string
}
type MACResolution struct {
MAC string `json:"mac"`
IPs []string `json:"ips,omitempty"`
}
func LoadNeighborTable() (*NeighborTable, error) {
return nil, fmt.Errorf("MAC neighbor/ARP resolution is only supported on Linux without external tools")
}
func ResolveMACs(macs []string) ([]MACResolution, error) {
_ = macs
return nil, fmt.Errorf("MAC resolution is only supported on Linux without external tools")
}