Skip to content

Commit

Permalink
Update pkg/utils/packet.go
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Panattoni <[email protected]>
  • Loading branch information
thom311 and zeeke authored Jul 31, 2024
1 parent 9056782 commit 3bcad02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func SendUnsolicitedNeighborAdvertisement(srcIP net.IP, linkObj netlink.Link, re
if ok && errno == syscall.EADDRNOTAVAIL {
// Assume the error happened because the IPv6 source address is
// still tentative. Retry?
if retryUntil.Before(time.Now()) {
if time.Now().Before(retryUntil) {
time.Sleep(nextSleepDuration)
/* Grow wait time exponentially (factor 1.5). */
nextSleepDuration += nextSleepDuration / 2
Expand Down

0 comments on commit 3bcad02

Please sign in to comment.