diff options
| author | Acee Lindem <acee@lindem.com> | 2024-11-15 18:58:49 +0000 | 
|---|---|---|
| committer | Acee Lindem <acee@lindem.com> | 2024-11-17 13:33:48 +0000 | 
| commit | 6afd56da969821359ee1fdfbfd33259587f58184 (patch) | |
| tree | a376d419856caef31d3aeac7dbc011313ae4ad7b /ospfd/ospf_lsa.c | |
| parent | e2314c9169e3e92d955811ed4aa9177d25e6b813 (diff) | |
ospfd: OSPF multi-instance default origination fixes
When originating a default AS-External LSA in one OSPF instance,
it wasn't working if the criteria route was installed by another OSPF
instance. This required more flexible processing of the OSPF external
route information.
Also fix problem multi-instance display for "show ip ospf
 <instance> database ...".
Signed-off-by: Acee Lindem <acee@lindem.com>
Diffstat (limited to 'ospfd/ospf_lsa.c')
| -rw-r--r-- | ospfd/ospf_lsa.c | 7 | 
1 files changed, 1 insertions, 6 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 1350487898..7354223397 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -2407,15 +2407,10 @@ struct ospf_lsa *ospf_nssa_lsa_refresh(struct ospf_area *area,  static struct external_info *ospf_default_external_info(struct ospf *ospf)  {  	int type; -	struct prefix_ipv4 p;  	struct external_info *default_ei;  	int ret = 0; -	p.family = AF_INET; -	p.prefix.s_addr = 0; -	p.prefixlen = 0; - -	default_ei = ospf_external_info_lookup(ospf, DEFAULT_ROUTE, 0, &p); +	default_ei = ospf_external_info_default_lookup(ospf);  	if (!default_ei)  		return NULL;  | 
