summaryrefslogtreecommitdiff
path: root/proto/rip/rip.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1998-12-04 11:45:51 +0000
committerPavel Machek <pavel@ucw.cz>1998-12-04 11:45:51 +0000
commit2d9290e973b9cfc909057a0409152e020d1c29db (patch)
treeca911770cb85e8734e6b2709bd2f3bef0729e152 /proto/rip/rip.h
parent9b999c393c6f89a73d5fe0f4e152b77ca0afb1b2 (diff)
Rip now has configurable per-interface metric (please rewiev), and few
more configurable parameters. To do that, union was added into iface_patt.
Diffstat (limited to 'proto/rip/rip.h')
-rw-r--r--proto/rip/rip.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/proto/rip/rip.h b/proto/rip/rip.h
index d63bb1a5..cbb2ccd8 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