diff options
| author | Acee Lindem <acee@lindem.com> | 2025-02-06 18:36:06 +0000 | 
|---|---|---|
| committer | Acee <aceelindem@gmail.com> | 2025-02-12 08:21:34 -0500 | 
| commit | b44258413f4b6569f8f94869b207ee655bac70ae (patch) | |
| tree | 5c90d14f16a0c29817948793cd3f1a6ca7a0dc2b /ospfd/ospf_lsdb.h | |
| parent | cea55c9223a4bff308238c97541c7d75c8bd88cd (diff) | |
ospfd: Replace LSDB callbacks with LSA Update/Delete hooks.
Replace the LSDB callbacks with LSA update and delete hooks using the
the FRR hook mechanism. Remove redundant callbacks by placing the LSA
update and delete hooks in a single place so that deletes don't need
to be handled by the update hook. Simplify existing OSPF TE and OSPF
API Server callbacks now that there is no ambiguity or redundancy.
Also cleanup the debugging by separating out opaque-lsa debugging
from the overloaded event debugging.
Signed-off-by: Acee Lindem <acee@lindem.com>
Diffstat (limited to 'ospfd/ospf_lsdb.h')
| -rw-r--r-- | ospfd/ospf_lsdb.h | 6 | 
1 files changed, 0 insertions, 6 deletions
diff --git a/ospfd/ospf_lsdb.h b/ospfd/ospf_lsdb.h index e5e3be8baa..e09c2937a5 100644 --- a/ospfd/ospf_lsdb.h +++ b/ospfd/ospf_lsdb.h @@ -19,12 +19,6 @@ struct ospf_lsdb {  		struct route_table *db;  	} type[OSPF_MAX_LSA];  	unsigned long total; -#define MONITOR_LSDB_CHANGE 1 /* XXX */ -#ifdef MONITOR_LSDB_CHANGE -	/* Hooks for callback functions to catch every add/del event. */ -	int (*new_lsa_hook)(struct ospf_lsa *); -	int (*del_lsa_hook)(struct ospf_lsa *); -#endif /* MONITOR_LSDB_CHANGE */  };  /* Macros. */  | 
