From dfa9a53a66e5747ddbeedfa0a47fa2ca9fc93b99 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Wed, 26 Apr 2000 12:54:23 +0000 Subject: Routing table calculation. Dijkstra done. --- proto/ospf/ospf.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'proto/ospf/ospf.h') diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 0039787..939bae7 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -202,6 +202,10 @@ struct ospf_lsa_rt_link_tos { /* Actually we ignore TOS. This is useless */ u16 metric; }; +struct ospf_lsa_net { + u32 netmask; +}; + struct ospf_lsa_summ { u32 netmask; }; @@ -320,7 +324,9 @@ struct ospf_area { struct top_graph *gr; /* LSA graph */ slist lsal; /* List of all LSA's */ struct top_hash_entry *rt; /* My own router LSA */ - int stub; + list cand; /* List of candidates for RT calc. */ + u8 stub; + u8 trcap; /* Transit capability? */ }; struct proto_ospf { @@ -330,6 +336,11 @@ struct proto_ospf { int areano; /* Number of area I belong to */ }; +struct spf_n { + node n; + struct top_hash_entry *en; +}; + static int ospf_start(struct proto *p); static void ospf_dump(struct proto *p); static struct proto *ospf_init(struct proto_config *c); @@ -346,5 +357,6 @@ static void ospf_postconfig(struct proto_config *c); #include "proto/ospf/lsupd.h" #include "proto/ospf/lsack.h" #include "proto/ospf/lsalib.h" +#include "proto/ospf/rt.h" #endif /* _BIRD_OSPF_H_ */ -- cgit v1.2.3