2022-03-15 17:57:46 +00:00
|
|
|
//go:build windows
|
|
|
|
|
2023-08-24 11:42:17 +01:00
|
|
|
package arpdb
|
2022-03-15 17:57:46 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"net"
|
2022-10-25 13:08:12 +01:00
|
|
|
"net/netip"
|
2022-03-15 17:57:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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-10-25 13:08:12 +01:00
|
|
|
IP: netip.MustParseAddr("192.168.1.2"),
|
2022-03-15 17:57:46 +00:00
|
|
|
MAC: net.HardwareAddr{0xAB, 0xCD, 0xEF, 0xAB, 0xCD, 0xEF},
|
|
|
|
}, {
|
2022-10-25 13:08:12 +01:00
|
|
|
IP: netip.MustParseAddr("::ffff:ffff"),
|
2022-03-15 17:57:46 +00:00
|
|
|
MAC: net.HardwareAddr{0xEF, 0xCD, 0xAB, 0xEF, 0xCD, 0xAB},
|
|
|
|
}}
|