]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
struct ospf_neigbor corrected.
authorOndrej Filip <feela@network.cz>
Mon, 24 May 1999 21:49:22 +0000 (21:49 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 24 May 1999 21:49:22 +0000 (21:49 +0000)
proto/ospf/ospf.h

index 4ab38d6bb7c363f5eb11494c870779013735ed70..b827294dc26edd7fe255c5239521d2d9a5396c52 100644 (file)
@@ -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 */
 };