summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-12-28 01:43:07 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-12-28 01:43:07 +0100
commite7b4948cbd3e4cacf4fe0f774b44d1f74029ea6d (patch)
tree7b4677b6eba5487ecf1c77ca21880ad0d3556617 /proto/ospf/ospf.h
parent919f5411c48f509a49400a1293e670f5d5d2bcf1 (diff)
downloadbird-e7b4948cbd3e4cacf4fe0f774b44d1f74029ea6d.tar
bird-e7b4948cbd3e4cacf4fe0f774b44d1f74029ea6d.zip
A simplification of the next-hop calculation.
Thanks to Joakim Tjernlund for the idea.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index e260dc0..75ffb6d 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -195,8 +195,13 @@ struct ospf_iface
ip_addr bdrip; /* Backup DR */
u32 drid;
u32 bdrid;
+ s16 rt_pos_beg; /* Position of iface in Router-LSA, begin, inclusive */
+ s16 rt_pos_end; /* Position of iface in Router-LSA, end, exclusive */
#ifdef OSPFv3
+ s16 px_pos_beg; /* Position of iface in Rt Prefix-LSA, begin, inclusive */
+ s16 px_pos_end; /* Position of iface in Rt Prefix-LSA, end, exclusive */
+
u32 dr_iface_id; /* if drid is valid, this is iface_id of DR (for connecting network) */
u8 instance_id; /* Used to differentiate between more OSPF
instances on one interface */