summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>1999-05-24 23:49:22 +0200
committerOndrej Filip <feela@network.cz>1999-05-24 23:49:22 +0200
commit903a3f3928a5d7c223ff4c0087343cf214f8478d (patch)
tree074d0cf5ac089e967531f133f40a4afb0504188a /proto/ospf
parentc76674f0e98d356ea235ea76fd55d71a3673b123 (diff)
downloadbird-903a3f3928a5d7c223ff4c0087343cf214f8478d.tar
bird-903a3f3928a5d7c223ff4c0087343cf214f8478d.zip
struct ospf_neigbor corrected.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/ospf.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index 4ab38d6..b827294 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -112,22 +112,25 @@ struct ospf_hello_packet {
u32 bdr;
};
-/* FIXME: int is not a good idea */
struct ospf_neighbor
{
+ struct ospf_iface *ifa;
int state;
#define NEIGHBOR_DOWN 0
#define NEIGHBOR_INIT 1
#define NEIGHBOR_2WAY 2
#define NEIGHBOR_ATTEMPT 3
#define NEIGHBOR_EXSTART 4
+#define NEIGHBOR_EXCHANGE 5
+#define NEIGHBOR_LOADING 6
+#define NEIGHBOR_FULL 7
timer *inactim; /* Inactivity timer */
- int ms; /* Master/slave */
- int dds; /* DD Sequence number being sentg */
- int ddr; /* last Dat Des packet */
+ byte ms; /* Master/slave */
+ u32 dds; /* DD Sequence number being sentg */
+ u32 ddr; /* last Dat Des packet */
u32 rid; /* Router ID */
- int pri; /* Priority */
- int options; /* Options */
+ byte pri; /* Priority */
+ byte options; /* Options */
u32 dr; /* Neigbour's idea of DR */
u32 bdr; /* Neigbour's idea of BDR */
};