Created
June 13, 2016 08:02
-
-
Save alexh-name/008eba81b0133a7d13228423170baf25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This will increase the accepted size for DNS responses in qmail from | |
512 to 65536 bytes, following a suggestion from | |
http://www.lifewithqmail.org/lwq.html#patches to work around large | |
responses, which can be common nowadays. | |
Patch was done against netqmail-1.06. | |
Alex H., 2016 | |
--- dns.c.orig 2016-06-13 09:42:50.502001080 +0200 | |
+++ dns.c 2016-06-13 09:44:02.233003195 +0200 | |
@@ -19,7 +19,7 @@ | |
static unsigned short getshort(c) unsigned char *c; | |
{ unsigned short u; u = c[0]; return (u << 8) + c[1]; } | |
-static union { HEADER hdr; unsigned char buf[PACKETSZ]; } response; | |
+static union { HEADER hdr; unsigned char buf[65536]; } response; | |
static int responselen; | |
static unsigned char *responseend; | |
static unsigned char *responsepos; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment