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