WIP
This commit is contained in:
parent
7850f3c9a5
commit
ab0f534525
1 changed files with 2 additions and 2 deletions
4
aarp.go
4
aarp.go
|
@ -252,12 +252,12 @@ func (a *AARPMachine) reroll() {
|
||||||
|
|
||||||
// Send an AARP response
|
// Send an AARP response
|
||||||
func (a *AARPMachine) heyThatsMe(targ aarp.AddrPair) error {
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
log.Printf("AARP: sending packet %+v", respFrame)
|
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
|
respFrame.Dst = targ.Hardware
|
||||||
respFrameRaw, err := ethertalk.Marshal(*respFrame)
|
respFrameRaw, err := ethertalk.Marshal(*respFrame)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue