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

dnsdist: Fix destination port reporting on "any" binds #5194

Merged
merged 2 commits into from Mar 26, 2017

Conversation

Projects
None yet
1 participant
@rgacogne
Member

rgacogne commented Mar 22, 2017

Short description

Over UDP we call HarvestDestinationAddress() to get the real destination address via IP_PKTINFO, but this only sets the destination address, not the destination port. Therefore since
7cea4e3 the destination port was always 0 when bound to an "any" address.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled and tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)
dnsdist: Fix destination port reporting on "any" binds
Over UDP we call `HarvestDestinationAddress()` to get the real
destination address via `IP_PKTINFO`., but this only sets the destination
address, not the destination port. Therefore since
7cea4e39a78ef981ee461b49bbc193fa9903f56dit the destination port was always
0 when bound to an "any" address.

@rgacogne rgacogne added this to the dnsdist-1.2.0 milestone Mar 22, 2017

@rgacogne rgacogne merged commit 6ff783c into PowerDNS:master Mar 26, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@rgacogne rgacogne deleted the rgacogne:dnsdist-fix-dest-port-when-harvesting branch Mar 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment