diff options
Diffstat (limited to 'sbin/routed/defs.h')
-rw-r--r-- | sbin/routed/defs.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/sbin/routed/defs.h b/sbin/routed/defs.h index 9e70add..1f8ec00 100644 --- a/sbin/routed/defs.h +++ b/sbin/routed/defs.h @@ -31,14 +31,9 @@ * SUCH DAMAGE. * * @(#)defs.h 8.1 (Berkeley) 6/5/93 - * - * $NetBSD$ + * $Id: defs.h,v 1.4 1996/12/10 17:07:36 wollman Exp $ */ -#ifndef __NetBSD__ -#ident "$Revision: 1.21 $" -#endif - /* Definitions for RIPv2 routing process. * * This code is based on the 4.4BSD `routed` daemon, with extensions to @@ -77,12 +72,12 @@ #include <stdarg.h> #include <syslog.h> #include <time.h> -#include <sys/time.h> #include <sys/types.h> #include <sys/param.h> #include <sys/ioctl.h> #include <sys/sysctl.h> #include <sys/socket.h> +#include <sys/time.h> #ifdef sgi #include <net/radix.h> #else @@ -96,6 +91,10 @@ #define RIPVERSION RIPv2 #include <protocols/routed.h> +#ifdef sgi +#define USE_PASSIFNAME +#endif + /* Type of an IP address. * Some systems do not like to pass structures, so do not use in_addr. @@ -624,12 +623,4 @@ extern struct interface *iflookup(naddr); extern struct auth *find_auth(struct interface *); extern void end_md5_auth(struct ws_buf *, struct auth *); -#define MD5_DIGEST_LEN 16 -typedef struct { - u_int32_t state[4]; /* state (ABCD) */ - u_int32_t count[2]; /* # of bits, modulo 2^64 (LSB 1st) */ - unsigned char buffer[64]; /* input buffer */ -} MD5_CTX; -extern void MD5Init(MD5_CTX*); -extern void MD5Update(MD5_CTX*, u_char*, u_int); -extern void MD5Final(u_char[MD5_DIGEST_LEN], MD5_CTX*); +#include <md5.h> |