summaryrefslogtreecommitdiffstats
path: root/proto/rip/rip.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-10-11 16:19:29 +0200
committerPavel Machek <pavel@ucw.cz>1999-10-11 16:19:29 +0200
commitc79ec2ec1962394f1550afa10a8b396f0e4dfc52 (patch)
tree3c34875313c163077dc5838a923d0afbbcd23a7f /proto/rip/rip.h
parent720d911d777f64872df923e102ebc509113885f0 (diff)
downloadbird-c79ec2ec1962394f1550afa10a8b396f0e4dfc52.tar
bird-c79ec2ec1962394f1550afa10a8b396f0e4dfc52.zip
Untested IPv6 support added. I do not know if it compiles in IPV6 mode.
Diffstat (limited to 'proto/rip/rip.h')
-rw-r--r--proto/rip/rip.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/proto/rip/rip.h b/proto/rip/rip.h
index 4dcc396..7bf225c 100644
--- a/proto/rip/rip.h
+++ b/proto/rip/rip.h
@@ -1,5 +1,7 @@
/*
* Structures for RIP protocol
+ *
+ FIXME: in V6, they insert additional entry whenever next hop differs. Such entry is identified by 0xff in metric.
*/
#include "nest/route.h"
@@ -39,6 +41,7 @@ struct rip_packet_heading {
u16 unused;
};
+#ifndef IPV6
struct rip_block {
u16 family; /* 0xffff on first message means this is authentication */
u16 tag;
@@ -47,6 +50,14 @@ struct rip_block {
ip_addr nexthop;
u32 metric;
};
+#else
+struct rip_block {
+ ip_addr network;
+ u16 tag;
+ u8 pxlen;
+ u8 metric
+};
+#endif
struct rip_block_auth {
u16 mustbeFFFF;