summaryrefslogtreecommitdiffstats
path: root/include/protocols
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-02-25 23:45:57 +0000
committerbms <bms@FreeBSD.org>2004-02-25 23:45:57 +0000
commitd21d623f8e8a4315c961e4c21e8791364bf5da82 (patch)
treee4203cef0e18ccd65dbc668359693d2d9e6ed679 /include/protocols
parent3bcc63994d2161d13a723601b646ddf345c06251 (diff)
downloadFreeBSD-src-d21d623f8e8a4315c961e4c21e8791364bf5da82.zip
FreeBSD-src-d21d623f8e8a4315c961e4c21e8791364bf5da82.tar.gz
Sync HEAD sources to vendor branch import of routed v2.27 from rhyolite.com.
Update <protocols/routed.h> for the MD5 changes requested in bin/35843. Preserve local changes. Education by: obrien, markm, pointy-stick PR: bin/35843 (and doubtless others)
Diffstat (limited to 'include/protocols')
-rw-r--r--include/protocols/routed.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/protocols/routed.h b/include/protocols/routed.h
index e41a0ae..b55b622 100644
--- a/include/protocols/routed.h
+++ b/include/protocols/routed.h
@@ -33,6 +33,7 @@
* @(#)routed.h 8.1 (Berkeley) 6/2/93
*
* $FreeBSD$
+ * $Revision: 2.26 $
*/
#ifndef _ROUTED_H_
@@ -98,7 +99,9 @@ struct netauth {
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
+#define RIP_AUTH_MD5_KEY_LEN RIP_AUTH_PW_LEN
+#define RIP_AUTH_MD5_HASH_XTRA (sizeof(struct netauth)-sizeof(struct a_md5))
+#define RIP_AUTH_MD5_HASH_LEN (RIP_AUTH_MD5_KEY_LEN+RIP_AUTH_MD5_HASH_XTRA)
} a_md5;
} au;
};
OpenPOWER on IntegriCloud