summaryrefslogtreecommitdiff
path: root/proto/static/static.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-12-06 18:21:23 +0000
committerMartin Mares <mj@ucw.cz>1998-12-06 18:21:23 +0000
commita1bf6440b5c27f7fb829eb25f6ac1c2629eb72eb (patch)
tree754d594eadd2439383bc8bbcb97d91265a090651 /proto/static/static.h
parent980ffedbb04bf3beedf147fc7dfed40cdbf968aa (diff)
Added skeleton of static route protocol.
Diffstat (limited to 'proto/static/static.h')
-rw-r--r--proto/static/static.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/proto/static/static.h b/proto/static/static.h
new file mode 100644
index 00000000..df18c133
--- /dev/null
+++ b/proto/static/static.h
@@ -0,0 +1,30 @@
+/*
+ * BIRD -- Static Route Generator
+ *
+ * (c) 1998 Martin Mares <mj@ucw.cz>
+ *
+ * Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+#ifndef _BIRD_STATIC_H_
+#define _BIRD_STATIC_H_
+
+struct static_proto {
+ struct proto p;
+ list routes;
+};
+
+void static_init_instance(struct static_proto *);
+
+struct static_route {
+ node n;
+ u32 net; /* Network we route */
+ int masklen; /* Mask length */
+ int dest; /* Destination type (RTD_*) */
+ u32 via; /* Destination router */
+ struct neighbor *neigh;
+ /* FIXME: Device routes, maybe via device patterns? */
+ /* FIXME: More route attributes, probably via filter syntax */
+};
+
+#endif