]> git.ipfire.org Git - thirdparty/squid.git/commit - include/rfc1035.h
Bug 2785: DNS needs to set EDNS options advertising Squid capabilities
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 17 Oct 2010 03:26:02 +0000 (21:26 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 17 Oct 2010 03:26:02 +0000 (21:26 -0600)
commite210930bd797caf3c79c65f995aabd10b15332a1
tree090247a2897404d15480f547baed9690a649d31b
parenteb3ffa704ed03e5b114049304ed9a33f059306fd
Bug 2785: DNS needs to set EDNS options advertising Squid capabilities

... allowing Squid to advertise a larger UDP reply size than 512 bytes.

Internally Squid has a buffer allocated on demand so there is no
practicable limit on individual packets. Network topology and external
software places stricter boundaries on what works and what does not.

Squid does not parse the additional section of replies so for now the
full auto-negotiation EDNS allows is not used. Instead a configuration
option is provided for admin to configure a desirable packet size in
bytes. EDNS defaults to "none" (disabled) until tested in a wider
environment.

Testing so far has brought to light problems with EDNS adverts on A and
IPv4-PTR queries. So support is limited to AAAA and IPv6-PTR queries only.
EDNS compliant resolvers have the option of caching the info between
requests for a short while so this will hopefully leak over to improve
IPv4 responses as well.
13 files changed:
include/rfc1035.h
include/rfc2671.h [new file with mode: 0644]
include/rfc3596.h
lib/Makefile.am
lib/rfc1035.c
lib/rfc2671.c [new file with mode: 0644]
lib/rfc3596.c
lib/tests/testRFC1035.cc
src/cache_cf.cc
src/cf.data.depend
src/cf.data.pre
src/dns_internal.cc
src/structs.h