]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Include nameser.h after minires.h
authorTed Lemon <source@isc.org>
Wed, 2 Feb 2000 19:59:16 +0000 (19:59 +0000)
committerTed Lemon <source@isc.org>
Wed, 2 Feb 2000 19:59:16 +0000 (19:59 +0000)
19 files changed:
minires/Makefile.dist
minires/base64.c
minires/dst_api.c
minires/dst_internal.h
minires/hmac_link.c
minires/ns_samedomain.c
minires/ns_sign.c
minires/ns_verify.c
minires/prandom.c
minires/res_comp.c
minires/res_findzonecut.c
minires/res_init.c
minires/res_mkquery.c
minires/res_mkupdate.c
minires/res_query.c
minires/res_send.c
minires/res_sendsigned.c
minires/res_update.c
minires/support.c

index cb9a9e4e6fe25a7c4aea26d4b72e522f8958815d..13705547e7d8da9ae44086f16214c569737f100d 100644 (file)
@@ -43,10 +43,10 @@ depend:
        makedepend $(INCLUDES) $(PREDEFINES) $(SRCS)
 
 clean:
-       -rm -f $(OBJ) test.o test cltest.o cltest
+       -rm -f $(OBJ) libres.a
 
 realclean: clean
-       -rm -f libdhcpctl.a *~ $(CATMANPAGES) $(SEDMANPAGES)
+       -rm -f *~ $(CATMANPAGES) $(SEDMANPAGES)
 
 distclean: realclean
        -rm -f Makefile
index 0d4b71ac115879e7ea35f61b4411e91a0fbd19de..65ea65d5cdd8ef839059e4a36fe703ec3c0fee5c 100644 (file)
@@ -41,7 +41,7 @@
  */
 
 #if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$Id: base64.c,v 1.1 2000/02/02 07:28:14 mellon Exp $";
+static const char rcsid[] = "$Id: base64.c,v 1.2 2000/02/02 19:59:15 mellon Exp $";
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -58,8 +58,8 @@ static const char rcsid[] = "$Id: base64.c,v 1.1 2000/02/02 07:28:14 mellon Exp
 
 #include <sys/socket.h>
 
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 #define Assert(Cond) if (!(Cond)) abort()
 
index 0d1e4f7c7ad3913fa83e1f8b9aa453d131bc5673..15e3ab55aba2b4e4f40173e09eaa077d234d6ac5 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef LINT
-static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/dst_api.c,v 1.1 2000/02/02 07:28:14 mellon Exp $";
+static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/dst_api.c,v 1.2 2000/02/02 19:59:15 mellon Exp $";
 #endif
 
 /*
@@ -52,8 +52,9 @@ static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/dst_api.c,
 #include <sys/stat.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
-#include "arpa/nameser.h"
+
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 #include "dst_internal.h"
 
index d173bc0c0c35e55c796ed363455a9e250c2463f5..69654a89a0802cc39a49e68d8265f3e99053eef5 100644 (file)
  */
 #include <limits.h>
 #include <sys/param.h>
-#if (!defined(BSD)) || (BSD < 199306)
-# include <sys/bitypes.h>
-#else
-# include <sys/types.h>
-#endif
 
 #ifndef PATH_MAX
 # ifdef POSIX_PATH_MAX
@@ -38,8 +33,8 @@ typedef struct dst_key {
        int     dk_key_size;    /* this is the size of the key in bits */
        int     dk_proto;       /* what protocols this key can be used for */
        int     dk_alg;         /* algorithm number from key record */
-       u_int32_t dk_flags;     /* and the flags of the public key */
-       u_int16_t dk_id;        /* identifier of the key */
+       unsigned dk_flags;     /* and the flags of the public key */
+       unsigned dk_id;        /* identifier of the key */
        void    *dk_KEY_struct; /* pointer to key in crypto pkg fmt */
        struct dst_func *dk_func; /* point to cryptto pgk specific function table */
 } DST_KEY;
index f4d20938c73ca065218e227768140a3fb8744b4d..e37c0b45d19e4ad30018ad670a0cf05382ba7a9e 100644 (file)
@@ -1,6 +1,6 @@
 #ifdef HMAC_MD5
 #ifndef LINT
-static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/hmac_link.c,v 1.2 2000/02/02 07:37:19 mellon Exp $";
+static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/hmac_link.c,v 1.3 2000/02/02 19:59:15 mellon Exp $";
 #endif
 /*
  * Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc.
@@ -33,8 +33,8 @@ static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/hmac_link.
 #include <netinet/in.h>
 #include <sys/socket.h>
 
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 #include "dst_internal.h"
 
index 54f2abd97305f4545daf00aa071eee19a47d581f..cc689a3617bf0c2b9735fe6320ba77b4a8c75cee 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: ns_samedomain.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Id: ns_samedomain.c,v 1.2 2000/02/02 19:59:15 mellon Exp $";
 #endif
 
 #include <sys/types.h>
@@ -126,12 +126,12 @@ ns_samedomain(const char *a, const char *b) {
         */
        escaped = 0;
        for (i = diff - 2; i >= 0; i--)
-               if (a[i] == '\\')
+               if (a[i] == '\\') {
                        if (escaped)
                                escaped = 0;
                        else
                                escaped = 1;
-               else
+               else
                        break;
        if (escaped)
                return (0);
index 54ffffa99799065bd95c8f90957ef8159d3ba810..60d9693df05462a0b29e322cff6dbeeeb7ba479b 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: ns_sign.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Id: ns_sign.c,v 1.2 2000/02/02 19:59:15 mellon Exp $";
 #endif
 
 /* Import. */
@@ -36,11 +36,11 @@ static const char rcsid[] = "$Id: ns_sign.c,v 1.1 2000/02/02 07:28:15 mellon Exp
 #include <unistd.h>
 #include <time.h>
 
-#include <isc/dst.h>
-
 #include "minires/minires.h"
 #include "arpa/nameser.h"
 
+#include <isc/dst.h>
+
 #define BOUNDS_CHECK(ptr, count) \
        do { \
                if ((ptr) + (count) > eob) { \
index 9eaf225b2a5a9933eb95e1e99e6113dde87235e6..31bbc5b79d8f19c0adab9214393d92e48d0099fd 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: ns_verify.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Id: ns_verify.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
 #endif
 
 /* Import. */
@@ -36,9 +36,9 @@ static const char rcsid[] = "$Id: ns_verify.c,v 1.1 2000/02/02 07:28:15 mellon E
 #include <unistd.h>
 #include <time.h>
 
-#include <isc/dst.h>
 #include "minires/minires.h"
 #include "arpa/nameser.h"
+#include <isc/dst.h>
 
 /* Private. */
 
index 9421f9e294a6e1c2d50808e96843039a5ea02cbd..b358108648291807f2cdca69d8bf79061d21bbdc 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef LINT
-static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/prandom.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/prandom.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
 #endif
 /*
  * Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc.
@@ -30,14 +30,13 @@ static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/prandom.c,
 #include <sys/stat.h>
 #include <sys/time.h>
 
-#include "dst_internal.h"
-
 #include <netinet/in.h>
 #include <sys/socket.h>
-#include "arpa/nameser.h"
 #define NEED_PRAND_CONF
 #include "minires/minires.h"
-/* XXX #include "prand_conf.h" XXX */
+#include "dst_internal.h"
+#include "arpa/nameser.h"
+
 
 #ifndef DST_NUM_HASHES
 #define DST_NUM_HASHES 4
index 1f0a5be9224dbc166e72f13621053b681840a2f6..4ca538e5da084c20a70453a0e1a2086caf4b953d 100644 (file)
@@ -70,7 +70,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)res_comp.c   8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: res_comp.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Id: res_comp.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -82,8 +82,8 @@ static const char rcsid[] = "$Id: res_comp.c,v 1.1 2000/02/02 07:28:15 mellon Ex
 #include <unistd.h>
 #include <sys/socket.h>
 
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 /*
  * Expand compressed domain name 'comp_dn' to full domain name.
index 61ef488c1a027e8cedab17a15ba8a5334410b9b6..44ef490136f6884ed02f8109363c08508b39cd43 100644 (file)
@@ -1,5 +1,5 @@
 #if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "$Id: res_findzonecut.c,v 1.2 2000/02/02 08:21:08 mellon Exp $";
+static const char rcsid[] = "$Id: res_findzonecut.c,v 1.3 2000/02/02 19:59:16 mellon Exp $";
 #endif /* not lint */
 
 /*
@@ -38,8 +38,8 @@ static const char rcsid[] = "$Id: res_findzonecut.c,v 1.2 2000/02/02 08:21:08 me
 
 #include <isc/list.h>
 
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 /* Data structures. */
 
index 89671b8cb7a08152d6db8f8c302ece6d0c6fb2c4..c777960670ccab3a44a25b3741e389ea9a304a9d 100644 (file)
@@ -70,7 +70,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)res_init.c   8.1 (Berkeley) 6/7/93";
-static const char rcsid[] = "$Id: res_init.c,v 1.2 2000/02/02 07:37:19 mellon Exp $";
+static const char rcsid[] = "$Id: res_init.c,v 1.3 2000/02/02 19:59:16 mellon Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -87,8 +87,8 @@ static const char rcsid[] = "$Id: res_init.c,v 1.2 2000/02/02 07:37:19 mellon Ex
 #include <string.h>
 #include <unistd.h>
 
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 /* Options.  Should all be left alone. */
 #define RESOLVSORT
index 77ed8903f008079a7de3ca50aabe8591631ae2f0..ef837c9e184d6f2f17b06dc4e05387098412a37e 100644 (file)
@@ -70,7 +70,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)res_mkquery.c        8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: res_mkquery.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Id: res_mkquery.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -94,7 +94,7 @@ int
 res_nmkquery(res_state statp,
             int op,                    /* opcode of query */
             const char *dname,         /* domain name */
-            ns_class class, ns_class type,     /* class and type of query */
+            ns_class class, ns_type type,      /* class and type of query */
             const u_char *data,        /* resource record data */
             unsigned datalen,          /* length of data */
             const u_char *newrr_in,    /* new rr for modify or append */
index 3f78e2aa89a77af3c95897a473e54a9842a233b2..b1d38d7dacd2c7a466e3e784a8463e69cabcd755 100644 (file)
  */
 
 #if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "$Id: res_mkupdate.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Id: res_mkupdate.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
 #endif /* not lint */
 
 #include <sys/types.h>
 #include <sys/param.h>
 
 #include <netinet/in.h>
-#include "arpa/nameser.h"
 #include <arpa/inet.h>
 #include <sys/socket.h>
 
@@ -42,6 +41,7 @@ static const char rcsid[] = "$Id: res_mkupdate.c,v 1.1 2000/02/02 07:28:15 mello
 #include <ctype.h>
 
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 /* Options.  Leave them on. */
 #define DEBUG
@@ -93,7 +93,6 @@ res_nmkupdate(res_state statp,
        unsigned n;
        ns_updrec *rrecp;
        struct in_addr ina;
-       struct in6_addr in6a;
         char buf2[MAXDNAME];
        u_char buf3[MAXDNAME];
        int section, numrrs = 0, counts[ns_s_max];
index 97a229a66c3b50f6c607b88582d9caf65b4da0df..f9bcc40b69174818a80ac014120feb65d894bfa6 100644 (file)
@@ -70,7 +70,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)res_query.c  8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: res_query.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Id: res_query.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -85,8 +85,8 @@ static const char rcsid[] = "$Id: res_query.c,v 1.1 2000/02/02 07:28:15 mellon E
 #include <string.h>
 #include <sys/socket.h>
 
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 /* Options.  Leave them on. */
 #define DEBUG
@@ -317,7 +317,7 @@ int
 res_nquerydomain(res_state statp,
            const char *name,
            const char *domain,
-           ns_class class, ns_class type,
+           ns_class class, ns_type type,
            u_char *answer,
            unsigned anslen)
 {
index b6c6c224459dd148a4721f0c807731adc15e239a..7f3411137b003a622766899862096c955cde63aa 100644 (file)
@@ -70,7 +70,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)res_send.c   8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: res_send.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Id: res_send.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -94,8 +94,8 @@ static const char rcsid[] = "$Id: res_send.c,v 1.1 2000/02/02 07:28:15 mellon Ex
 #include <string.h>
 #include <unistd.h>
 
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 #define        CHECK_SRVR_ADDR
                
@@ -312,7 +312,7 @@ res_nsend(res_state statp,
                        if (statp->_sock >= 0 &&
                            (statp->_flags & RES_F_VC) != 0) {
                                struct sockaddr_in peer;
-                               int size = sizeof(peer);
+                               socklen_t size = sizeof(peer);
 
                                if (getpeername(statp->_sock,
                                                (struct sockaddr *)&peer,
@@ -478,7 +478,8 @@ res_nsend(res_state statp,
                        int start, timeout, finish;
                        fd_set dsmask;
                        struct sockaddr_in from;
-                       int fromlen, seconds;
+                       socklen_t fromlen;
+                       int seconds;
 
                        if (statp->_sock < 0 ||
                            (statp->_flags & RES_F_VC) != 0) {
@@ -557,7 +558,8 @@ res_nsend(res_state statp,
                                                       sizeof no_addr);
 #else
                                        struct sockaddr_in local_addr;
-                                       int len, result, s1;
+                                       socklen_t len;
+                                       int result, s1;
 
                                        len = sizeof(local_addr);
                                        s1 = socket(PF_INET, SOCK_DGRAM, 0);
index 0931af27e691ef14c660418ed1dd37f9aac0f26c..cc63e43156e02456ed411a26a26b3e343f5cac53 100644 (file)
@@ -5,8 +5,6 @@
 #include <arpa/inet.h>
 #include <sys/socket.h>
 
-#include <isc/dst.h>
-
 #include <errno.h>
 #include <netdb.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
 
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
+
+#include <isc/dst.h>
 
 /* res_nsendsigned */
 int
index d63e7d3f2bb98cd314a17b5d010a5cd48cbdcd85..bf7060c94456b7652cb3ef39517e37eaf45fe4c0 100644 (file)
@@ -1,5 +1,5 @@
 #if !defined(lint) && !defined(SABER)
-static const char rcsid[] = "$Id: res_update.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Id: res_update.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
 #endif /* not lint */
 
 /*
@@ -40,8 +40,8 @@ static const char rcsid[] = "$Id: res_update.c,v 1.1 2000/02/02 07:28:15 mellon
 #include <string.h>
 
 #include <isc/list.h>
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 /*
  * Separate a linked list of records into groups so that all records
index d3fe8d3dd443a1f8dd3ecb1324870b5a50bfea57..9b681ab71240e93e5173caaa50b88e5a1c5a5ebc 100644 (file)
@@ -1,4 +1,4 @@
-static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/support.c,v 1.1 2000/02/02 07:28:15 mellon Exp $";
+static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/support.c,v 1.2 2000/02/02 19:59:16 mellon Exp $";
 
 
 /*
@@ -26,8 +26,8 @@ static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/support.c,
 #include <sys/stat.h>
 #include <netinet/in.h>
 #include <sys/socket.h>
-#include "arpa/nameser.h"
 #include "minires/minires.h"
+#include "arpa/nameser.h"
 
 #include "dst_internal.h"
 
@@ -384,7 +384,7 @@ int
 dst_s_build_filename(char *filename, const char *name, unsigned id,
                     int alg, const char *suffix, size_t filename_length)
 {
-       u_int32_t my_id;
+       unsigned my_id;
        if (filename == NULL)
                return (-1);
        memset(filename, 0, filename_length);