From ea83f93056d9fa7196b5a91e2eb4012ae58a21aa Mon Sep 17 00:00:00 2001 From: Yuan Liu Date: Mon, 7 Aug 2023 10:38:16 -0700 Subject: [PATCH] set taret IP in garp reply according to standard, target IP should be set. Some routers may not like it if it's missing. --- ncc/arp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncc/arp.go b/ncc/arp.go index 3968fda4..9b91e46b 100644 --- a/ncc/arp.go +++ b/ncc/arp.go @@ -100,7 +100,7 @@ func gratuitousARPReply(ip net.IP, mac net.HardwareAddr) (*arpMessage, error) { mac, ip.To4(), ethernetBroadcast, - net.IPv4bcast, + ip.To4(), } return m, nil