summaryrefslogtreecommitdiff
path: root/proto/rip/rip.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-02-15 13:34:43 +0000
committerPavel Machek <pavel@ucw.cz>1999-02-15 13:34:43 +0000
commit293e313ec91d4d23d6333e8cd852d425079cee68 (patch)
treea67d5d738e0fd3a24314dfafa9ed498fc6dc69a3 /proto/rip/rip.h
parentb5fe3dc21c930e1d9864e342a75785efe862bd24 (diff)
More rip fixes (config data moved to struct rip_proto_config), still
not tested.
Diffstat (limited to 'proto/rip/rip.h')
-rw-r--r--proto/rip/rip.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/proto/rip/rip.h b/proto/rip/rip.h
index 4839016d..e79c95d3 100644
--- a/proto/rip/rip.h
+++ b/proto/rip/rip.h
@@ -82,6 +82,15 @@ struct rip_patt {
int mode;
};
+struct rip_proto_config {
+ list iface_list; /* Patterns configured */
+
+ int infinity; /* User configurable data */
+ int port;
+ int period;
+ int garbage_time;
+};
+
struct rip_proto {
struct proto inherited;
timer *timer;
@@ -89,17 +98,9 @@ struct rip_proto {
struct fib rtable;
list garbage;
list interfaces; /* Interfaces we really know about */
- list iface_list; /* Patterns configured */
int magic;
-
- int infinity; /* User configurable data */
- int port;
- int period;
- int garbage_time;
};
-#define P ((struct rip_proto *) p)
-#define E ((struct rip_entry *) e)
#define RIP_MAGIC 81861253
#define CHK_MAGIC do { if (P->magic != RIP_MAGIC) bug( "Not enough magic\n" ); } while (0)