summaryrefslogtreecommitdiff
path: root/include/protocols
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1996-11-19 21:22:18 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1996-11-19 21:22:18 +0000
commit2832011fa27e87c74b05e07ef1aa2ef214e758ca (patch)
tree3da1f446ae367b1190303f213cbee20d88f2d25d /include/protocols
parent52ad60210fad9bcb7ec1cbcf162aace1232cadaa (diff)
downloadsrc-test2-2832011fa27e87c74b05e07ef1aa2ef214e758ca.tar.gz
src-test2-2832011fa27e87c74b05e07ef1aa2ef214e758ca.zip
Notes
Diffstat (limited to 'include/protocols')
-rw-r--r--include/protocols/routed.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/protocols/routed.h b/include/protocols/routed.h
index 8bfc0a191257..28cf614a5dbb 100644
--- a/include/protocols/routed.h
+++ b/include/protocols/routed.h
@@ -40,7 +40,7 @@
#ifdef __cplusplus
extern "C" {
#endif
-#ident "$Revision: 1.9 $"
+#ident "$Revision: 1.1.1.1 $"
/*
* Routing Information Protocol
@@ -85,11 +85,22 @@ struct netinfo {
/* RIPv2 authentication */
struct netauth {
+ 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;
};
@@ -103,6 +114,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
};