diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-11 09:36:50 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-11 09:36:50 +0000 |
commit | 1a61882d370e6aef99ebc11d6bbc4e9dc48c6b95 (patch) | |
tree | 13654b6d8ab69989e8b0787ec702511bb2025036 /proto/ospf/ospf.h | |
parent | b1f7229ad7d0b10fcc1fde6645c8b8ebbb3644a6 (diff) |
Better routing table calculation. We are ready to work with
multiple OSPF areas.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r-- | proto/ospf/ospf.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index b5540133..8c7eaa05 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -248,10 +248,17 @@ struct ospf_lsa_header struct vebb { +#ifdef _BIG_ENDIAN + u8 padding:5; + u8 v:1; + u8 e:1; + u8 b:1; +#else u8 b:1; u8 e:1; u8 v:1; u8 padding:5; +#endif }; union veb @@ -263,9 +270,6 @@ union veb struct ospf_lsa_rt { union veb veb; -#define LSA_RT_V 5 -#define LSA_RT_E 6 -#define LSA_RT_B 7 u8 padding; u16 links; }; @@ -432,7 +436,6 @@ struct ospf_area int stub; int trcap; /* Transit capability? */ struct proto_ospf *po; - struct fib infib; /* FIB for intra-area routes */ unsigned tick; }; @@ -445,7 +448,7 @@ struct proto_ospf list iface_list; /* Interfaces we really use */ list area_list; int areano; /* Number of area I belong to */ - struct fib efib; /* FIB for external routes */ + struct fib rtf[2]; /* Routing tables */ int rfc1583; /* RFC1583 compatibility */ int ebit; /* Did I originate any ext lsa? */ }; |