summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>1999-05-24 23:17:16 +0200
committerOndrej Filip <feela@network.cz>1999-05-24 23:17:16 +0200
commitc76674f0e98d356ea235ea76fd55d71a3673b123 (patch)
treed70bbb5ee3857e3a26f4c5457c4598244257d8a6 /proto/ospf/ospf.h
parent65112dd270dbfa598c1f8a5074bf7224b9e1469c (diff)
downloadbird-c76674f0e98d356ea235ea76fd55d71a3673b123.tar
bird-c76674f0e98d356ea235ea76fd55d71a3673b123.zip
struct ospf_neigbor added. Neigbor state machine implementation can start.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index 6b57596..4ab38d6 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -70,8 +70,7 @@ struct ospf_iface {
#define PRIORITY_D 1
#define HELLOINT_D 10
#define DEADINT_D 4
-#define WAIT_D 20 /* Value of Wait timer - I didn't found it in RFC */
-
+#define WAIT_DMH 2 /* Value of Wait timer - not found it in RFC - using 2*HELLO */
};
struct ospf_sock {
@@ -113,4 +112,24 @@ struct ospf_hello_packet {
u32 bdr;
};
+/* FIXME: int is not a good idea */
+struct ospf_neighbor
+{
+ int state;
+#define NEIGHBOR_DOWN 0
+#define NEIGHBOR_INIT 1
+#define NEIGHBOR_2WAY 2
+#define NEIGHBOR_ATTEMPT 3
+#define NEIGHBOR_EXSTART 4
+ timer *inactim; /* Inactivity timer */
+ int ms; /* Master/slave */
+ int dds; /* DD Sequence number being sentg */
+ int ddr; /* last Dat Des packet */
+ u32 rid; /* Router ID */
+ int pri; /* Priority */
+ int options; /* Options */
+ u32 dr; /* Neigbour's idea of DR */
+ u32 bdr; /* Neigbour's idea of BDR */
+};
+
#endif /* _BIRD_OSPF_H_ */