From c27b2449d1f57e780974ed13fbd572a48e2a3602 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Mon, 8 Feb 2010 16:01:03 +0100 Subject: 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. --- proto/ospf/rt.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'proto/ospf/rt.h') 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; -- cgit v1.2.3