[Toybox] [PATCH] host: cope with large DNS responses.

Rob Landley rob at landley.net
Sat Sep 7 00:10:18 PDT 2019


On 9/7/19 12:37 AM, enh via Toybox wrote:
> DNS responses were limited to 512 bytes back when they were UDP only,
> but if you have a TCP connection you can get up to 64KiB.
> 
> Also use the existing constant for the size of rrname.

I don't want that on the stack for nommu systems. (64k is a common nommu total
process stack size, since it has to be a single contiguous allocation that is
preallocated whether it's used or not.)

As for maxdname, 4.3bsd had it as 256, it's currently 1025 (gratuitously NOT a
power of 2?) and at that rate of growth I don't particularly want it on the
stack either.

Rob



More information about the Toybox mailing list