]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-packet.h
resolved: Increase size of TCP stub replies
authorVictor Tapia <victor.tapia@canonical.com>
Wed, 21 Nov 2018 13:01:04 +0000 (14:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 28 Nov 2018 13:06:36 +0000 (14:06 +0100)
commite6eed9445956cfa496e1db933bfd3530db23bfce
tree53cd2be0d37d84123e0c1a77bded933921f49d6d
parent59a2a18e27435ed00741fc8703e19866de37e3d3
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
src/resolve/resolved-dns-packet.h