From ab0f5345256ad2b819045dd963ce6832e582dd45 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Sat, 13 Apr 2024 17:59:24 +1000 Subject: [PATCH] WIP --- aarp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aarp.go b/aarp.go index e4b765c..9af8fbf 100644 --- a/aarp.go +++ b/aarp.go @@ -252,12 +252,12 @@ 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(targ, a.myAddr)) + respFrame, err := ethertalk.AARP(a.myAddr.Hardware, aarp.Response(a.myAddr, targ)) if err != nil { return err } log.Printf("AARP: sending packet %+v", respFrame) - // Instead of broadcasting the reply, send it to the target specifically + // Instead of broadcasting the reply, send it to the target specifically? respFrame.Dst = targ.Hardware respFrameRaw, err := ethertalk.Marshal(*respFrame) if err != nil {