diff options
author | wollman <wollman@FreeBSD.org> | 1996-11-19 21:22:18 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-11-19 21:22:18 +0000 |
commit | 1c00ce6ecff0faa3e7a0ee11427fbcc07870c1a2 (patch) | |
tree | 3da1f446ae367b1190303f213cbee20d88f2d25d /include | |
parent | b91551e88365a1a4ef273e599fe34d6f77871fa0 (diff) | |
download | FreeBSD-src-1c00ce6ecff0faa3e7a0ee11427fbcc07870c1a2.zip FreeBSD-src-1c00ce6ecff0faa3e7a0ee11427fbcc07870c1a2.tar.gz |
Matching routed.h to go along with latest routed.
Diffstat (limited to 'include')
-rw-r--r-- | include/protocols/routed.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/protocols/routed.h b/include/protocols/routed.h index 8bfc0a1..28cf614 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 }; |