Skip to content

Renewal - #158

Open
reynir wants to merge 12 commits into
mirage:mainfrom
reynir:renewal
Open

Renewal#158
reynir wants to merge 12 commits into
mirage:mainfrom
reynir:renewal

Conversation

@reynir

@reynir reynir commented Jul 31, 2026

Copy link
Copy Markdown
Member

No description provided.

Comment thread client/lwt/dhcp_client_lwt.ml Outdated
do_renew lease
| `T2_rebinding ->
(* TODO *)
failwith "oh no"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be fixed before merge, or?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. We likely need a timer on Ip_lease_time secs as well

@reynir
reynir marked this pull request as draft July 31, 2026 10:54

@reynir reynir left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed code that implements rebinding and renewing. I think the code @PizieDust added was actually closer to rebinding. I'm not convinced the renew logic is correct (see review comment).

Comment thread client/dhcp_client.ml Outdated
Comment on lines 126 to 134

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so convinced of this. For RENEWING RFC 2131 4.3.2 says:

This message will be unicast, so no relay agents will be involved in its transmission.

I think when renewing we don't need to care about other DHCP servers being present.

@reynir
reynir marked this pull request as ready for review August 13, 2026 10:45
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.

3 participants