summaryrefslogtreecommitdiffstats
path: root/ripd/ripd.h
diff options
context:
space:
mode:
authorpaul <paul>2005-02-04 23:42:41 +0000
committerpaul <paul>2005-02-04 23:42:41 +0000
commite1db08bb41f8db6d7799817f6e27ff1ed27bbb06 (patch)
tree86a7440459100507ba95496eebc3bfd1ce3a92ee /ripd/ripd.h
parent4f46aa53add85f7ab497bab81e79853caf13bdbc (diff)
downloadquagga-e1db08bb41f8db6d7799817f6e27ff1ed27bbb06.tar.bz2
quagga-e1db08bb41f8db6d7799817f6e27ff1ed27bbb06.tar.xz
2005-02-04 Paul Jakma <paul@dishone.st>
* ripd.c: Untangle the construction of RIP auth data. (rip_auth_prepare_str_send) new helper function, prepare correct key string. (rip_auth_simple_write) new helper, write out the rip simple password auth psuedo-RTE. (rip_auth_md5_ah_write) new helper, write out the MD5 auth-header psuedo-RTE. (rip_auth_header_write) new helper, write out correct auth header data / psuedo-RTE. (rip_auth_md5_set) rip out the memmove and writing of the auth header psuedo-RTE. So that all that is left is to write the trailing auth digest, and update digest offset field in the original header. (rip_write_rte) rip out writing of RIP header, writing of simple auth data psuedo-RTE. Make it do what its name suggests, write out actual RTEs. (rip_output_process) remove the incorrect additional decrements of rtemax. Prepare the auth_str, which simple or MD5 auth will need. Move write out of RIP header and auth data to inside the loop. Adjust paramaters as required.
Diffstat (limited to 'ripd/ripd.h')
-rw-r--r--ripd/ripd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ripd/ripd.h b/ripd/ripd.h
index 0334888b..7874871e 100644
--- a/ripd/ripd.h
+++ b/ripd/ripd.h
@@ -87,6 +87,9 @@
#define RIP_AUTH_SIMPLE_PASSWORD 2
#define RIP_AUTH_MD5 3
+/* RIPv2 Simple authentication */
+#define RIP_AUTH_SIMPLE_SIZE 16
+
/* RIPv2 MD5 authentication. */
#define RIP_AUTH_MD5_SIZE 16
#define RIP_AUTH_MD5_COMPAT_SIZE RIP_RTE_SIZE