summaryrefslogtreecommitdiffstats
path: root/proto/ospf/rt.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-02-08 16:01:03 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-02-08 16:01:03 +0100
commitc27b2449d1f57e780974ed13fbd572a48e2a3602 (patch)
treedad29d3d936989a46e62a03ee994290d852662b4 /proto/ospf/rt.h
parent5a56f27cd00c2cad661aed9b54696699e800883c (diff)
downloadbird-c27b2449d1f57e780974ed13fbd572a48e2a3602.tar
bird-c27b2449d1f57e780974ed13fbd572a48e2a3602.zip
Shows source (Router ID) for OSPF routes and adds such attribute.
A sad thing is that we does not have a 'router_id' filter type, so it must be given as decimal number in filters.
Diffstat (limited to 'proto/ospf/rt.h')
-rw-r--r--proto/ospf/rt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/proto/ospf/rt.h b/proto/ospf/rt.h
index 5020b47..559fa5c 100644
--- a/proto/ospf/rt.h
+++ b/proto/ospf/rt.h
@@ -28,8 +28,11 @@ typedef struct orta
u32 metric2;
ip_addr nh; /* Next hop */
struct ospf_iface *ifa; /* Outgoing interface */
- struct top_hash_entry *ar; /* Advertising router */
+ struct top_hash_entry *ar; /* Advertising router (or ABR) */
u32 tag;
+ u32 rid; /* Router ID of real advertising router */
+ /* For ext-LSA from different area, 'ar' is a type 1 LSA of ABR.
+ Router ID of real advertising router is stored in 'rid'. */
}
orta;