From 3dc455713b68be8f59e5bf8b44bd42d7fa2638d5 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Sat, 13 Apr 2024 18:17:54 +1000 Subject: [PATCH] no broadcast? --- aarp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aarp.go b/aarp.go index 9af8fbf..eefaf37 100644 --- a/aarp.go +++ b/aarp.go @@ -252,13 +252,13 @@ func (a *AARPMachine) reroll() { // Send an AARP response func (a *AARPMachine) heyThatsMe(targ aarp.AddrPair) error { - respFrame, err := ethertalk.AARP(a.myAddr.Hardware, aarp.Response(a.myAddr, targ)) + respFrame, err := ethertalk.AARP(a.myAddr.Hardware, aarp.Response(targ, a.myAddr)) if err != nil { return err } log.Printf("AARP: sending packet %+v", respFrame) // Instead of broadcasting the reply, send it to the target specifically? - respFrame.Dst = targ.Hardware + //respFrame.Dst = targ.Hardware respFrameRaw, err := ethertalk.Marshal(*respFrame) if err != nil { return err