Skip to content

Commit

Permalink
fix DAD arping packet check
Browse files Browse the repository at this point in the history
  • Loading branch information
mangoyhuang committed Oct 25, 2024
1 parent f3142e7 commit 29c2673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arp_datagram.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (datagram arpDatagram) IsResponseOf(request arpDatagram) bool {
}

func (datagram arpDatagram) IsDuplicateRequestOf(request arpDatagram) bool {
return datagram.oper == requestOper && bytes.Equal(request.spa, datagram.tpa) &&
return datagram.oper == requestOper && bytes.Equal(request.tpa, datagram.spa) &&
bytes.Equal(request.tpa, datagram.tpa)
}

Expand Down

0 comments on commit 29c2673

Please sign in to comment.