resolved: Increase size of TCP stub replies
authorVictor Tapia <victor.tapia@canonical.com>
Wed, 21 Nov 2018 13:01:04 +0000 (14:01 +0100)
committerFelipe Sateler <fsateler@debian.org>
Thu, 6 Dec 2018 00:03:34 +0000 (00:03 +0000)
commit8681758cde163755f1f4692518ae3257708a6444
tree6712e29bf09b8c9f2731a86eb928326c5fe45272
parent1a2ef5a088c4a847fb54327af8b2fb0458512cec
resolved: Increase size of TCP stub replies

DNS_PACKET_PAYLOAD_SIZE_MAX is limiting the size of the stub replies to
512 with EDNS off or 4096 with EDNS on, without checking the protocol
used. This makes TCP replies for clients without EDNS support to be
limited to 512, making the truncate flag useless if the query result is
bigger than 512 bytes.

This commit increases the size of TCP replies to DNS_PACKET_SIZE_MAX

Fixes: #10816
(cherry picked from commit e6eed9445956cfa496e1db933bfd3530db23bfce)

Gbp-Pq: Name resolved-Increase-size-of-TCP-stub-replies.patch
src/resolve/resolved-dns-packet.h