[227] in Hesiod
Re: huge printcap entries
daemon@ATHENA.MIT.EDU (Greg Wohletz)
Fri Jul 29 12:48:50 1994
To: Dan Walsh <walsh@athena.tay.dec.com>
Cc: "Derrick J. Brashear" <db74+@ANDREW.CMU.EDU>, hesiod@MIT.EDU, paul@vix.com
In-Reply-To: Your message of "Fri, 29 Jul 1994 08:17:40 EDT."
<9407291217.AA27561@dialup.athena.tay.dec.com>
Date: Fri, 29 Jul 1994 09:35:29 -0700
From: Greg Wohletz <greg@duke.CS.UNLV.EDU>
>There are two places where you need to change the limit.
>
>First you need to change hesiod to use a tcp connection.
>
I've always thought that hesiod should use a VC. I'll give this a try.
>You also need to change bind ns_main.c. Sorry about the lack of
> diffs. I sent this change to Paul Vixie and he said it looked
> reasonalble, so it could be in a future release of named.
> This give me queries that will return arount 8000 bytes.
>
> if ((sp->s_bufp - (u_char *)&sp->s_tempsize) ==
> sizeof(u_int16_t)) {
> sp->s_size = htons(sp->s_tempsize);
> if (sp->s_bufsize == 0) {
> if ( (sp->s_buf = (u_char *)
> malloc(8 * BUFSIZ))
> == NULL) {
> sp->s_buf = buf;
> sp->s_size = sizeof(buf);
> } else {
> sp->s_bufsize = 8 * BUFSIZ;
> }
> }
An equivalent change is already present in 4.9.3-BETA9
--Greg