From 1a61882d370e6aef99ebc11d6bbc4e9dc48c6b95 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 11 Jun 2004 09:36:50 +0000 Subject: Better routing table calculation. We are ready to work with multiple OSPF areas. --- proto/ospf/ospf.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'proto/ospf/ospf.h') diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index b554013..8c7eaa0 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? */ }; -- cgit v1.2.3