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

backoff-cutoff time; equivalant in dhcpcd.conf #406

Open
Vishwasrao1 opened this issue Nov 14, 2024 · 3 comments
Open

backoff-cutoff time; equivalant in dhcpcd.conf #406

Vishwasrao1 opened this issue Nov 14, 2024 · 3 comments

Comments

@Vishwasrao1
Copy link

We have recently shifted to dhcpcd from dhclient, I want to set backoff-cutoff time to some custom value, I can not find that option in dhcpcd. any idea what the equivalent of "backoff-cutoff time" in dhcpcd?

@rsmarples
Copy link
Member

That isn't a configurable in dhcpcd. It's hardcoded at 64 seconds as per RFC2131. This is a should though, so it can be changed.

If I might ask, why do you want this and what value would you be using?

@Vishwasrao1
Copy link
Author

Hello @rsmarples,

Thank you for your response. We have a customer requirement that states:

In case the DHCP server does not respond to the request, the DHCP client shall use the retransmission algorithm recommended in RFC 2131. In order to speed up the start-up of the device, it is necessary to reduce the back-off times specified in RFC 2131. The maximum back-off time shall be 4 seconds. Preferably, the back-off time shall be fixed (1 – 4 seconds).

Could you please direct me to the source code where this is hardcoded? This will allow us to make it configurable. I will send you a PR afterwards.

@rsmarples
Copy link
Member

https://github.com/NetworkConfiguration/dhcpcd/blob/master/src/dhcp.c#L1859

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

No branches or pull requests

2 participants