This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
Unicast to the giaddr address when non zero: #67
Merged
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.
Description
When the DHCP header
giaddr
is set, we must unicast responses to that address. DHCP RFC section 4.1, page 22:In addition to not being to spec, sending responses to the direct peer causes that a relay agent that sent a unicast request doesn't receive the expected unicast response if there is more than one relay in the mix. This is observed with the v0.4.2 Tink stack helm chart as we deploy a DHCP relay as part of the stack.
Current Traffic flow for the Helm chart deployment. Traffic from the relay container (inside the tink stack deployment) doesn't unicast responses to the network's relay agent.
Why is this needed
Fixes: #tinkerbell/smee#382
How Has This Been Tested?
Manually testing using the v0.4.2 helm chart.
Traffic will now make it back to the network's relay agent:
How are existing users impacted? What migration steps/scripts do we need?
Checklist:
I have: