From d21d623f8e8a4315c961e4c21e8791364bf5da82 Mon Sep 17 00:00:00 2001 From: bms Date: Wed, 25 Feb 2004 23:45:57 +0000 Subject: Sync HEAD sources to vendor branch import of routed v2.27 from rhyolite.com. Update for the MD5 changes requested in bin/35843. Preserve local changes. Education by: obrien, markm, pointy-stick PR: bin/35843 (and doubtless others) --- include/protocols/routed.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/protocols') 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; }; -- cgit v1.1