]> git.ipfire.org Git - thirdparty/pdns.git/commit
Correctly parse ECS with a source prefix-length value of 0
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 9 Feb 2017 13:50:11 +0000 (14:50 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 31 May 2017 14:13:13 +0000 (16:13 +0200)
commit6f3719e9affefc7f7026f2e2532a3cd36a847026
tree1416459e5983d9539cc8938774dc8ca159b9450c
parent68c055c22f1a2e2cabeaadc6698021fbc6199cc5
Correctly parse ECS with a source prefix-length value of 0

It means there is no address there, but the family and source
prefix-length values are still relevant. rfc7871 explicitly says
that the family SHOULD be set to the transport over which the query
is sent if source prefix-length is 0.
It also states that a source prefix-length means the client is
asking that no ECS value be sent.

(cherry picked from commit 53221eafae3fe410586daf98cca0df3d81ea344c)
pdns/ednssubnet.cc