From 98ac61766d81d9f20c4a7c7e12859c3b82b24f4c Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 25 Jun 2004 16:39:53 +0000 Subject: A lot of changes: - metric is 3 byte long now - summary lsa originating - more OSPF areas possible - virtual links - better E1/E2 routes handling - some bug fixes.. I have to do: - md5 auth (last mandatory item from rfc2328) - !!!!DEBUG!!!!! (mainly virtual link system has probably a lot of bugs) - 2328 appendig E --- proto/ospf/topology.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'proto/ospf/topology.h') diff --git a/proto/ospf/topology.h b/proto/ospf/topology.h index 55ecb4f..c6031c5 100644 --- a/proto/ospf/topology.h +++ b/proto/ospf/topology.h @@ -1,7 +1,7 @@ /* * BIRD -- OSPF * - * (c) 1999 - 2004 Ondrej Filip + * (c) 1999--2004 Ondrej Filip * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -21,15 +21,15 @@ struct top_hash_entry void *lsa_body; bird_clock_t inst_t; /* Time of installation into DB */ ip_addr nh; /* Next hop */ + ip_addr lb; /* Link back */ struct iface *nhi; - u16 dist; /* Distance from the root */ + u32 dist; /* Distance from the root */ u16 ini_age; u8 color; #define OUTSPF 0 #define CANDIDATE 1 #define INSPF 2 u8 padding; - u16 padding2; }; struct top_graph @@ -62,5 +62,11 @@ int can_flush_lsa(struct ospf_area *oa); int max_ext_lsa(unsigned pxlen); void originate_ext_lsa(net * n, rte * e, struct proto_ospf *po, struct ea_list *attrs); +void check_sum_lsa(struct proto_ospf *po, ort *nf, int); +void originate_sum_lsa(struct ospf_area *oa, struct fib_node *fn, int type, int metric); +void flush_sum_lsa(struct ospf_area *oa, struct fib_node *fn, int type); + + + #endif /* _BIRD_OSPF_TOPOLOGY_H_ */ -- cgit v1.2.3