summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-03-30 02:18:59 +0200
committerOndrej Filip <feela@network.cz>2000-03-30 02:18:59 +0200
commit6d2b32114feadb283cb988daa7ed80142aa8c4d1 (patch)
tree67274abcbca41d5c2b7f640f24f11d90f84c3749 /proto/ospf/ospf.h
parent3ee2310c5dccebe2b63098ab478b5b1d61e4fcb2 (diff)
downloadbird-6d2b32114feadb283cb988daa7ed80142aa8c4d1.tar
bird-6d2b32114feadb283cb988daa7ed80142aa8c4d1.zip
LSreq initial work.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index 06ca56d..0301154 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -11,6 +11,8 @@
#define LOCAL_DEBUG
+#define SIPH 64 /* FIXME Size Of IP header */
+
#include <string.h>
#include "nest/bird.h"
@@ -232,6 +234,18 @@ struct ospf_lsa_ext_tos {
u32 tag;
};
+struct ospf_lsreq_packet {
+ struct ospf_packet ospf_packet;
+};
+
+struct ospf_lsreq_header {
+ u16 padd1;
+ u8 padd2;
+ u8 type;
+ u32 id;
+ u32 rt; /* Advertising router */
+};
+
struct ospf_neighbor
{
node n;
@@ -258,12 +272,13 @@ struct ospf_neighbor
u32 bdr; /* Neigbour's idea of BDR */
u8 adj; /* built adjacency? */
siterator dbsi; /* Database summary list iterator */
- slist lsrql; /* Link state request */ /* FIXME add top_gr hashing? */
+ slist lsrql; /* Link state request */ /* FIXME add hashing? */
siterator lsrqi;
slist lsrtl; /* Link state retransmission list */
siterator lsrti;
void *ldbdes; /* Last database description packet */
- timer *rxmt_timer; /* RXMT timer */
+ timer *rxmt_timer; /* RXMT timer */
+ timer *lsrr_timer; /* Link state requiest retransmition timer */
};
/* Definitions for interface state machine */
@@ -318,5 +333,6 @@ static void ospf_postconfig(struct proto_config *c);
#include "proto/ospf/neighbor.h"
#include "proto/ospf/topology.h"
#include "proto/ospf/dbdes.h"
+#include "proto/ospf/lsreq.h"
#endif /* _BIRD_OSPF_H_ */