1152. [bug] libbind: read buffer overflows.
1154. [bug] Don't attempt to obtain the netmask of a interface
if there is no address configured. [RT #2176]
+1152. [bug] libbind: read buffer overflows.
+
1144. [bug] rndc-confgen would crash if both the -a and -t
options were specified. [RT #2159]
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: dns_nw.c,v 1.3 2001/04/03 06:42:21 marka Exp $";
+static const char rcsid[] = "$Id: dns_nw.c,v 1.3.2.1 2002/01/22 04:15:44 marka Exp $";
#endif /* LIBC_SCCS and not lint */
/* Imports. */
#define MAXALIASES 35
-#if PACKETSZ > 1024
-#define MAXPACKET PACKETSZ
-#else
-#define MAXPACKET 1024
-#endif
+#define MAXPACKET (64*1024)
struct pvt {
struct nwent net;
#define PTON_MAX 16
-#if PACKETSZ > 1024
-#define MAXPACKET PACKETSZ
-#else
-#define MAXPACKET 1024
-#endif
+#define MAXPACKET (1024*64)
typedef union {
HEADER hdr;