From 6996f459c6d8e6205bbacd83e3656b47635f7d6d Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 22 Dec 1998 19:41:04 +0000 Subject: Bird now uses fib structure instead of linklist. --- proto/rip/rip.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'proto/rip/rip.h') diff --git a/proto/rip/rip.h b/proto/rip/rip.h index 0e010dd..cfe0d67 100644 --- a/proto/rip/rip.h +++ b/proto/rip/rip.h @@ -2,18 +2,21 @@ * Structures for RIP protocol */ +#include "nest/route.h" + struct rip_connection { node n; int num; struct proto *proto; ip_addr addr; - struct rip_entry *sendptr; sock *send; struct rip_interface *rif; + struct fib_iterator iter; ip_addr daddr; int dport; + int done; }; struct rip_packet_heading { @@ -39,11 +42,9 @@ struct rip_block { }; struct rip_entry { - node n; + struct fib_node n; ip_addr whotoldme; - ip_addr network; - int pxlen; ip_addr nexthop; int metric; u16 tag; @@ -72,7 +73,7 @@ struct rip_proto { struct proto inherited; timer *timer; list connections; - list rtable; + struct fib rtable; list garbage; list interfaces; /* Interfaces we really know about */ list iface_list; /* Patterns configured */ @@ -91,3 +92,4 @@ struct rip_proto { #define CHK_MAGIC do { if (P->magic != RIP_MAGIC) bug( "Not enough magic\n" ); } while (0) void rip_init_instance(struct proto *p); +struct rip_interface *new_iface(struct proto *p, struct iface *new, unsigned long flags); -- cgit v1.2.3