diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2019-01-31 03:09:21 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-04-27 19:33:45 +0200 |
commit | 4ab0496e38f5e242648572efad300091a8e41d78 (patch) | |
tree | 1c24773585225051572794b327f1b00677d886d1 /ospf6d/ospf6_spf.h | |
parent | lib: use DECLARE_SKIPLIST for timers instead of pqueue (diff) | |
download | frr-4ab0496e38f5e242648572efad300091a8e41d78.tar.xz frr-4ab0496e38f5e242648572efad300091a8e41d78.zip |
ospf6d: replace pqueue_* with DECLARE_SKIPLIST
As the previous commit, this replaces ospf6d's pqueue_* usage in SPF
calculations with a DECLARE_SKIPLIST_* skiplist.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ospf6d/ospf6_spf.h')
-rw-r--r-- | ospf6d/ospf6_spf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ospf6d/ospf6_spf.h b/ospf6d/ospf6_spf.h index da95ec80a..a387d40a5 100644 --- a/ospf6d/ospf6_spf.h +++ b/ospf6d/ospf6_spf.h @@ -21,6 +21,7 @@ #ifndef OSPF6_SPF_H #define OSPF6_SPF_H +#include "typesafe.h" #include "ospf6_top.h" /* Debug option */ @@ -33,6 +34,7 @@ extern unsigned char conf_debug_ospf6_spf; #define IS_OSPF6_DEBUG_SPF(level) \ (conf_debug_ospf6_spf & OSPF6_DEBUG_SPF_##level) +PREDECL_SKIPLIST_NONUNIQ(vertex_pqueue) /* Transit Vertex */ struct ospf6_vertex { /* type of this vertex */ @@ -41,6 +43,8 @@ struct ospf6_vertex { /* Vertex Identifier */ struct prefix vertex_id; + struct vertex_pqueue_item pqi; + /* Identifier String */ char name[128]; |