AdGuardHome/internal/arpdb/arpdb_windows_internal_test.go

24 lines
522 B
Go
Raw Permalink Normal View History

//go:build windows
2023-09-07 17:13:48 +03:00
package arpdb
import (
"net"
2022-11-02 16:18:02 +03:00
"net/netip"
)
const arpAOutput = `
Interface: 192.168.1.1 --- 0x7
Internet Address Physical Address Type
192.168.1.2 ab-cd-ef-ab-cd-ef dynamic
::ffff:ffff ef-cd-ab-ef-cd-ab static`
var wantNeighs = []Neighbor{{
2022-11-02 16:18:02 +03:00
IP: netip.MustParseAddr("192.168.1.2"),
MAC: net.HardwareAddr{0xAB, 0xCD, 0xEF, 0xAB, 0xCD, 0xEF},
}, {
2022-11-02 16:18:02 +03:00
IP: netip.MustParseAddr("::ffff:ffff"),
MAC: net.HardwareAddr{0xEF, 0xCD, 0xAB, 0xEF, 0xCD, 0xAB},
}}