Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix overflow in parameter sizes for ARP timeouts #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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