Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/dist/bind/bin/nslookup Pull up revision 1.3 (requested ...



details:   https://anonhg.NetBSD.org/src/rev/f6212b774b2a
branches:  netbsd-1-6
changeset: 528161:f6212b774b2a
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Jun 28 11:37:00 2002 +0000

description:
Pull up revision 1.3 (requested by itojun in ticket #387):
Update to BIND 8.3.3.  Fixes buffer overrun in resolver code.

diffstat:

 dist/bind/bin/nslookup/res.h |  43 ++++++++++++++++++++++++++++++-------------
 1 files changed, 30 insertions(+), 13 deletions(-)

diffs (96 lines):

diff -r 6099518fa20e -r f6212b774b2a dist/bind/bin/nslookup/res.h
--- a/dist/bind/bin/nslookup/res.h      Fri Jun 28 11:36:51 2002 +0000
+++ b/dist/bind/bin/nslookup/res.h      Fri Jun 28 11:37:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: res.h,v 1.2 2001/01/27 07:22:01 itojun Exp $   */
+/*     $NetBSD: res.h,v 1.2.2.1 2002/06/28 11:37:00 lukem Exp $        */
 
 /*
  * ++Copyright++ 1985, 1989
@@ -57,7 +57,7 @@
 
 /*
  *     @(#)res.h       5.10 (Berkeley) 6/1/90
- *     Id: res.h,v 8.7 2000/12/23 08:14:47 vixie Exp
+ *     Id: res.h,v 8.10 2002/04/09 05:55:22 marka Exp
  */
 
 /*
@@ -133,18 +133,22 @@
  * for use in system calls)."
  */
 
+typedef struct {
+       int     addrType;
+       int     addrLen;
+       char    *addr;
+} AddrInfo;
+
 typedef struct {
        char    *name;          /* official name of host */
        char    **domains;      /* domains it serves */
-       char    **addrList;     /* list of addresses from name server */
+       AddrInfo **addrList;    /* list of addresses from name server */
 } ServerInfo;
 
 typedef struct {
        char    *name;          /* official name of host */
        char    **aliases;      /* alias list */
-       char    **addrList;     /* list of addresses from name server */
-       int     addrType;       /* host address type */
-       int     addrLen;        /* length of address */
+       AddrInfo **addrList;    /* list of addresses from name server */
        ServerInfo **servers;
 } HostInfo;
 
@@ -171,7 +175,6 @@
  */
 
 /* XXX need prototypes */
-extern Boolean IsAddr();
 void Print_query(const u_char *msg, const u_char *eom, int printHeader);
 void Fprint_query(const u_char *msg, const u_char *eom, int printHeader,
                  FILE *file);
@@ -188,18 +191,17 @@
 extern void NsError();
 extern void PrintServer();
 extern void PrintHostInfo();
-extern void ShowOptions();
 extern void FreeHostInfoPtr();
 extern FILE *OpenFile();
-extern char *res_skip();
 extern int pickString(const char *, char *, size_t);
-extern int GetHostInfoByName();
-extern int GetHostInfoByAddr();
-extern int GetHostDomain();
+extern int GetHostInfoByName(union res_sockaddr_union *, int, int,
+                            const char *, HostInfo *, Boolean, Boolean);
+extern int GetHostDomain(union res_sockaddr_union *, int, int,
+                        const char *, char *, HostInfo *, Boolean, Boolean);
 extern int matchString(const char *, const char *);
 extern int StringToType(char *, int, FILE *);
 extern int StringToClass(char *, int, FILE *);
-extern int SendRequest(struct in_addr *, const u_char *, int,
+extern int SendRequest(union res_sockaddr_union *, const u_char *, int,
                       u_char *, u_int, int *);
 extern void SendRequest_close(void);
 extern int SetDefaultServer(char *, Boolean);
@@ -210,3 +212,18 @@
 int SetOption(char *);
 int LookupHost(char *, Boolean);
 int LookupHostWithServer(char *, Boolean);
+const char * DecodeType(int);
+const char * DecodeError(int);
+FILE * OpenFile(char *, char *, size_t);
+void  PrintHostInfo(FILE *, const char *, HostInfo *);
+char * Calloc(int, int);
+char * Malloc(int);
+SIG_FN IntrHandler(int);
+int ListSubr(int, char *, char *);
+void FreeHostInfoPtr(HostInfo *);
+unsigned char * res_skip(unsigned char *, int, unsigned char *);
+extern Boolean IsAddr(const char *, union res_sockaddr_union *);
+void PrintHelp(void);
+int GetHostInfoByAddr(union res_sockaddr_union *, union res_sockaddr_union *,
+                     HostInfo *);
+



Home | Main Index | Thread Index | Old Index