From c79ec2ec1962394f1550afa10a8b396f0e4dfc52 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 11 Oct 1999 14:19:29 +0000 Subject: Untested IPv6 support added. I do not know if it compiles in IPV6 mode. --- proto/rip/rip.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'proto/rip/rip.h') 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; -- cgit v1.2.3