diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-02-08 16:01:03 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-02-08 16:01:03 +0100 |
commit | c27b2449d1f57e780974ed13fbd572a48e2a3602 (patch) | |
tree | dad29d3d936989a46e62a03ee994290d852662b4 /proto/ospf/rt.h | |
parent | 5a56f27cd00c2cad661aed9b54696699e800883c (diff) |
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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/proto/ospf/rt.h b/proto/ospf/rt.h index 5020b473..559fa5c6 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; |