summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-02-03 22:20:38 +0000
committerchristos <christos@NetBSD.org>1997-02-03 22:20:38 +0000
commitfb80ce77e811419c0f34f8d25d265a446e144142 (patch)
tree9d4e0fd55ba2ec2eb1fe913cd976112d2830bf88 /include
parente42b78c179fd75ed1adefc4864a56a3c953255a5 (diff)
Apply the necessary fixes from: routed-970113
Diffstat (limited to 'include')
-rw-r--r--include/protocols/routed.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/protocols/routed.h b/include/protocols/routed.h
index 32b9f1b784e..a0cfe216d02 100644
--- a/include/protocols/routed.h
+++ b/include/protocols/routed.h
@@ -1,4 +1,4 @@
-/* $NetBSD: routed.h,v 1.9 1996/11/04 21:29:46 christos Exp $ */
+/* $NetBSD: routed.h,v 1.10 1997/02/03 22:20:38 christos Exp $ */
/*-
* Copyright (c) 1983, 1989, 1993
@@ -88,12 +88,22 @@ struct netinfo {
/* RIPv2 authentication */
struct netauth {
- u_int16_t a_family; /* overlays netinfo.n_family */
+ u_int16_t a_family; /* always RIP_AF_AUTH */
u_int16_t a_type;
+#define RIP_AUTH_NONE 0
#define RIP_AUTH_PW htons(2) /* password type */
+#define RIP_AUTH_MD5 htons(3) /* Keyed MD5 */
union {
#define RIP_AUTH_PW_LEN 16
- int8_t au_pw[RIP_AUTH_PW_LEN];
+ u_int8_t au_pw[RIP_AUTH_PW_LEN];
+ struct a_md5 {
+ int16_t md5_pkt_len; /* RIP-II packet length */
+ int8_t md5_keyid; /* key ID and auth data len */
+ int8_t md5_auth_len; /* 16 */
+ u_int32_t md5_seqno; /* sequence number */
+ u_int32_t rsvd[2]; /* must be 0 */
+#define RIP_AUTH_MD5_LEN RIP_AUTH_PW_LEN
+ } a_md5;
} au;
};
@@ -107,6 +117,7 @@ struct rip {
struct netauth ru_auth[1];
} ripun;
#define rip_nets ripun.ru_nets
+#define rip_auths ripun.ru_auth
#define rip_tracefile ripun.ru_tracefile
};