IPv4 sugar#17743
Open
miodvallat wants to merge 3 commits into
Open
Conversation
Fixes: PowerDNS#6149 Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
miodvallat
force-pushed
the
inet_atonishment
branch
from
July 17, 2026 07:14
259de5c to
828d579
Compare
Coverage Report for CI Build 29562484365Warning Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes. Coverage increased (+0.5%) to 71.142%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions3042 previously-covered lines in 85 files lost coverage.
Coverage Stats💛 - Coveralls |
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.
Short description
For $reasons, creation of a
ComboAddressobject (wrapping either an IPv4 address, or an IPv6 address, or a Unix domain socket), is strict when trying to parse its address specification as IPv4, and requires a four-digits-with-dots-in-between address, by usinginet_pton.However, many other parts of the code use
inet_atonto parse IPv4 addresses, which allows for the shorter notations preferred by the greybeards.This PR therefore changes this to use
inet_aton, giving you enough rope to break your configurations. If you had a working configuration, it will keep working and you don't have to worry anyway.As a bonus, you get an extra
inet_aton-related cleanup commit, because why not.Fixes #6149.
Checklist
I have: