From b36a0a799c751864f65bc3384df301448b54f3bf Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 2 Jun 2000 19:55:55 +0000 Subject: area {} added to config. --- proto/ospf/ospf.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'proto/ospf/ospf.h') diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 4627af1..92095cf 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -48,8 +48,14 @@ struct ospf_config { struct proto_config c; int rfc1583; - u32 area; /* FIXME: Area ID !!! This is wrong !!! - * Should respect interface */ + list area_list; +}; + +struct ospf_area_config { + node n; + u32 areaid; + int stub; + unsigned tick; }; struct ospf_iface { @@ -105,6 +111,7 @@ struct ospf_iface { */ struct top_hash_entry *nlsa; /* Originated net lsa */ int fadj; /* Number of full adjacent neigh */ + unsigned tick; }; struct ospf_packet { @@ -334,8 +341,8 @@ struct ospf_area { slist lsal; /* List of all LSA's */ struct top_hash_entry *rt; /* My own router LSA */ list cand; /* List of candidates for RT calc. */ - u8 stub; - u8 trcap; /* Transit capability? */ + int stub; + int trcap; /* Transit capability? */ struct proto_ospf *po; struct fib infib; /* FIB for intra-area routes */ }; -- cgit v1.2.3