diff options
author | Dinesh Dutt <ddutt@cumulusnetworks.com> | 2013-08-24 07:54:09 +0000 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2013-11-07 18:15:30 -0800 |
commit | 3810e06eebe14f75c66fb17a88574384573e95fa (patch) | |
tree | 0e7ba30d0b24d1ea874eb257b78fdeed2eaebf4c /ospf6d/ospf6_spf.h | |
parent | 8551e6dadce41fb87a61767af723cb25ae611a04 (diff) | |
download | quagga-3810e06eebe14f75c66fb17a88574384573e95fa.tar.bz2 quagga-3810e06eebe14f75c66fb17a88574384573e95fa.tar.xz |
ospf6d: schedule SPF to run on events rather than directly on each event.
OSPV3 SPF triggers on every SPF-able event instead of using timers the way
OSPFv2 does. This patch makes SPF be triggered/throttled similar to OSPFv2.
It adds a command to quagga identical to the OSPFv2 equivalent to configure
these timers.
Summary:
Signed-off-by: Dinesh Dutt <ddutt at cumulusnetworks.com>
Reviewed-by: Scott Feldman <sfeldma at cumulusnetworks.com>
[DL: removed reference to oa->ts_spf for rebase]
[DL: killed timeval_subtract]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_spf.h')
-rw-r--r-- | ospf6d/ospf6_spf.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ospf6d/ospf6_spf.h b/ospf6d/ospf6_spf.h index c7069c25..6c40424f 100644 --- a/ospf6d/ospf6_spf.h +++ b/ospf6d/ospf6_spf.h @@ -22,6 +22,8 @@ #ifndef OSPF6_SPF_H #define OSPF6_SPF_H +#include "ospf6_top.h" + /* Debug option */ extern unsigned char conf_debug_ospf6_spf; #define OSPF6_DEBUG_SPF_PROCESS 0x01 @@ -81,11 +83,12 @@ extern void ospf6_spf_table_finish (struct ospf6_route_table *result_table); extern void ospf6_spf_calculation (u_int32_t router_id, struct ospf6_route_table *result_table, struct ospf6_area *oa); -extern void ospf6_spf_schedule (struct ospf6_area *oa); +extern void ospf6_spf_schedule (struct ospf6 *ospf); extern void ospf6_spf_display_subtree (struct vty *vty, const char *prefix, int rest, struct ospf6_vertex *v); +extern void ospf6_spf_config_write (struct vty *vty); extern int config_write_ospf6_debug_spf (struct vty *vty); extern void install_element_ospf6_debug_spf (void); extern void ospf6_spf_init (void); |