]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Remove ECS option from response's OPT RR when necessary 3627/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 10 Mar 2016 08:31:33 +0000 (09:31 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 25 Mar 2016 10:44:36 +0000 (11:44 +0100)
commitff73f02b3872704eb57212f61ac8836d41490b30
tree0247417d7fec22ec6a326dfd6701acd560511fab
parentaad8327f7f3113b0746f85eb218fdc27e843bef9
dnsdist: Remove ECS option from response's OPT RR when necessary

If we added an ECS option to a query already having EDNS,
we need to remove the ECS option sent back by the server if any,
otherwise this might confuse the original client.
14 files changed:
pdns/dnsdist-ecs.cc
pdns/dnsdist-ecs.hh
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/dnsdist.hh
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/ednscookies.cc [new symlink]
pdns/dnsdistdist/ednscookies.hh [new symlink]
pdns/ednscookies.cc [new file with mode: 0644]
pdns/ednscookies.hh [new file with mode: 0644]
pdns/test-dnsdist_cc.cc
regression-tests.dnsdist/clientsubnetoption.py
regression-tests.dnsdist/cookiesoption.py [new file with mode: 0644]
regression-tests.dnsdist/test_EdnsClientSubnet.py