WIP: Fix: make rebind & release compliant with RFC2131 #560 - #570
Open
lp35 wants to merge 3 commits into
Open
Conversation
Collaborator
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
Related to issue 569, this is a first overview of the modifications needed in order to be fully compliant with the RFC2131.
This PR introduces:
However actions and understanding of the DHCP protocol is still needed in order to fully comply with the RFC for people who are using this library.
This a WIP PR, which needs some love to make all of this transparent for current users, and some architecture change must be done. Indeed, during the lifetime of a nclient4, we need a way to switch between broadcasting and unicasting sockets.
To be fully compliant, this is how the users needs to implement DHCP on their side currently.
Request (as before, broadcast, source address could be 0.0.0.0):
Renew, Rebind & Release (unicast & broadcast, but source address must be filled):
Following are 2 wireshark captures of the before/after this implementation:
Before:

After:

This is my proposal for the architecture modification:
Error path and recovery state can be discussed prior of any implementation!
Thanks for your time, and thank you for maintaining this library! :)
BR