summaryrefslogtreecommitdiff
path: root/proto/rip/rip.h
diff options
context:
space:
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 4dcc396d..7bf225c3 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;