summaryrefslogtreecommitdiff
path: root/proto/rip/rip.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-11-25 14:54:08 +0000
committerPavel Machek <pavel@ucw.cz>1999-11-25 14:54:08 +0000
commitd3702d57fd5357e9a11ada6c46769a79da8e547a (patch)
tree66467d2a69fe0721321d253052d4f181b5c99c0b /proto/rip/rip.h
parent4aa885a53c479c774aab5befe55a1714b89cdc9e (diff)
Bugfixes: select right password for password authentication, do not
try to process authentication blocks as datablocks, make it possible to add data at end of packet. Password authentication should actually work.
Diffstat (limited to 'proto/rip/rip.h')
-rw-r--r--proto/rip/rip.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/rip/rip.h b/proto/rip/rip.h
index 2b5a2d29..613d198c 100644
--- a/proto/rip/rip.h
+++ b/proto/rip/rip.h
@@ -42,7 +42,7 @@ struct rip_packet_heading {
};
#ifndef IPV6
-struct rip_block {
+struct rip_block { /* 20 bytes */
u16 family; /* 0xffff on first message means this is authentication */
u16 tag;
ip_addr network;
@@ -51,7 +51,7 @@ struct rip_block {
u32 metric;
};
#else
-struct rip_block {
+struct rip_block { /* IPv6 version! */
ip_addr network;
u16 tag;
u8 pxlen;
@@ -59,7 +59,7 @@ struct rip_block {
};
#endif
-struct rip_block_auth {
+struct rip_block_auth { /* 20 bytes */
u16 mustbeFFFF;
u16 authtype;
u16 packetlen;
@@ -70,7 +70,7 @@ struct rip_block_auth {
u32 zero1;
};
-struct rip_md5_tail {
+struct rip_md5_tail { /* 20 bytes */
u16 mustbeFFFF;
u16 mustbe0001;
char md5[16];
@@ -158,4 +158,4 @@ void rip_init_config(struct rip_proto_config *c);
/* Authentication functions */
int rip_incoming_authentication( struct proto *p, struct rip_block_auth *block, struct rip_packet *packet, int num );
-void rip_outgoing_authentication( struct proto *p, struct rip_block_auth *block, struct rip_packet *packet, int num );
+int rip_outgoing_authentication( struct proto *p, struct rip_block_auth *block, struct rip_packet *packet, int num );