Add workaround for EDNS0 queries that exceed the buffer size
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Dec 2009 02:46:58 +0000 (03:46 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Dec 2009 02:46:58 +0000 (03:46 +0100)
commit1fab2db6662c9f7097cbc2486a84f36482e83050
treedced56e815dcefe429b7423b30333fbe4e36d77c
parentad8fce0c1b11756e1fe04bf04ff205f18ff5dfad
Add workaround for EDNS0 queries that exceed the buffer size

This is a dirty hack which makes it work -- artificially bump the
buffer size up to 4KiB for requests with a smaller buffer size. For
a DNS proxy which serves arbitrary clients this might crash when
it gets a larger response than asked for, but since this is only
serving the local host and knowing that glibc does cope, it is
possible to get away with it for now.
plugins/dnsproxy.c