Backout the increase of MAXPACKET from 1024 to 65536: it

broke pthreads.

Reported by:	mbr, tjr
This commit is contained in:
Jacques Vidrine 2002-09-15 04:23:20 +00:00
parent 028e9e5902
commit 7deb8a7ddd
6 changed files with 26 additions and 7 deletions

View File

@ -201,7 +201,11 @@ static const ns_src default_dns_files[] = {
{ 0 }
};
#define MAXPACKET 65536
#if PACKETSZ > 1024
#define MAXPACKET PACKETSZ
#else
#define MAXPACKET 1024
#endif
typedef union {
HEADER hdr;

View File

@ -103,7 +103,11 @@ static void addrsort(char **, int);
static void dprintf(char *, int) __printflike(1, 0);
#endif
#define MAXPACKET 65536
#if PACKETSZ > 1024
#define MAXPACKET PACKETSZ
#else
#define MAXPACKET 1024
#endif
typedef union {
HEADER hdr;

View File

@ -88,7 +88,11 @@ extern int h_errno;
#define BYNAME 1
#define MAXALIASES 35
#define MAXPACKET 65536
#if PACKETSZ > 1024
#define MAXPACKET PACKETSZ
#else
#define MAXPACKET 1024
#endif
typedef union {
HEADER hdr;

View File

@ -967,7 +967,11 @@ struct __res_type_list {
int rtl_type;
};
#define MAXPACKET 65536
#if PACKETSZ > 1024
#define MAXPACKET PACKETSZ
#else
#define MAXPACKET 1024
#endif
typedef union {
HEADER hdr;

View File

@ -90,7 +90,11 @@ __FBSDID("$FreeBSD$");
#include "res_config.h"
#define MAXPACKET 65536
#if PACKETSZ > 1024
#define MAXPACKET PACKETSZ
#else
#define MAXPACKET 1024
#endif
/*
* Formulate a normal query, send, and await answer.

View File

@ -51,7 +51,6 @@ __FBSDID("$FreeBSD$");
*/
#define NSMAX 16
#define MAXPACKET 65536
struct ns1 {
char nsname[MAXDNAME];
@ -72,7 +71,7 @@ struct zonegrp {
int
res_update(ns_updrec *rrecp_in) {
ns_updrec *rrecp, *tmprrecp;
u_char buf[PACKETSZ], answer[MAXPACKET], packet[2*PACKETSZ];
u_char buf[PACKETSZ], answer[PACKETSZ], packet[2*PACKETSZ];
char name[MAXDNAME], zname[MAXDNAME], primary[MAXDNAME],
mailaddr[MAXDNAME];
u_char soardata[2*MAXCDNAME+5*INT32SZ];