diff options
Diffstat (limited to 'include/protocols')
-rw-r--r-- | include/protocols/routed.h | 5 |
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; }; |