From 2d9290e973b9cfc909057a0409152e020d1c29db Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Fri, 4 Dec 1998 11:45:51 +0000 Subject: Rip now has configurable per-interface metric (please rewiev), and few more configurable parameters. To do that, union was added into iface_patt. --- proto/rip/rip.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'proto/rip/rip.h') diff --git a/proto/rip/rip.h b/proto/rip/rip.h index d63bb1a..cbb2ccd 100644 --- a/proto/rip/rip.h +++ b/proto/rip/rip.h @@ -64,21 +64,27 @@ struct rip_interface { struct iface *iface; sock *sock; struct rip_connection *busy; + + int metric; /* User configurable data */ }; -struct rip_data { +struct rip_proto { struct proto inherited; timer *timer; list connections; list rtable; list garbage; - list interfaces; + list interfaces; /* Interfaces we really know about */ + list iface_list; /* Patterns configured */ int magic; - int infinity; /* How much is infinity? Should be 16 */ + int infinity; /* User configurable data */ + int port; + int period; + int garbage_time; }; -#define P ((struct rip_data *) p) +#define P ((struct rip_proto *) p) #define E ((struct rip_entry *) e) #define RIP_MAGIC 81861253 -- cgit v1.2.3