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
*/
#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>
#include <sys/socket.h>
-#include "arpa/nameser.h"
#include "minires/minires.h"
+#include "arpa/nameser.h"
#define Assert(Cond) if (!(Cond)) abort()
#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
/*
#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"
*/
#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
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;
#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.
#include <netinet/in.h>
#include <sys/socket.h>
-#include "arpa/nameser.h"
#include "minires/minires.h"
+#include "arpa/nameser.h"
#include "dst_internal.h"
*/
#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>
*/
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);
*/
#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. */
#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) { \
*/
#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. */
#include <unistd.h>
#include <time.h>
-#include <isc/dst.h>
#include "minires/minires.h"
#include "arpa/nameser.h"
+#include <isc/dst.h>
/* Private. */
#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.
#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
#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>
#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.
#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 */
/*
#include <isc/list.h>
-#include "arpa/nameser.h"
#include "minires/minires.h"
+#include "arpa/nameser.h"
/* Data structures. */
#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>
#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
#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>
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 */
*/
#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>
#include <ctype.h>
#include "minires/minires.h"
+#include "arpa/nameser.h"
/* Options. Leave them on. */
#define DEBUG
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];
#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>
#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
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)
{
#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 */
/*
#include <string.h>
#include <unistd.h>
-#include "arpa/nameser.h"
#include "minires/minires.h"
+#include "arpa/nameser.h"
#define CHECK_SRVR_ADDR
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,
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) {
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);
#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
#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 */
/*
#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
-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 $";
/*
#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"
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);