Skip to content

Conversation

AaronCleaver
Copy link

@AaronCleaver AaronCleaver commented Apr 15, 2021

ARP sends a request 4 times with a 2 second delay then should wait for 30s before dropping packet.
The parameter declarations and literals default to integer (signed 32 bit).
The 30 sec cycle count doesn't fit in 31 bits of integer and overflows, result is a 9min wait before dropping packet.

log2(125000000 * 2) = 27.89
log2(125000000 * 30) = 31.80 (overflow)

@fpgapsyc
Copy link

fpgapsyc commented Jan 6, 2022

Is this issue rectified the lastest repo

@AaronCleaver
Copy link
Author

Is this issue rectified the lastest repo

No, I don't believe it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants