]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_lsdb.h
Merge pull request #11874 from sri-mohan1/sri-isis-dbg1
[mirror_frr.git] / ospf6d / ospf6_lsdb.h
index 7a62c46b02a3a6451e5000a3aa2c51ff5403ecd1..a3a4d5bb9f3a35d0feb42103fb79cc4030e75b6e 100644 (file)
@@ -29,6 +29,7 @@ struct ospf6_lsdb {
        void *data; /* data structure that holds this lsdb */
        struct route_table *table;
        uint32_t count;
+       uint32_t stats[OSPF6_LSTYPE_SIZE];
        void (*hook_add)(struct ospf6_lsa *);
        void (*hook_remove)(struct ospf6_lsa *);
 };
@@ -68,15 +69,15 @@ extern struct ospf6_lsa *ospf6_lsdb_next(const struct route_node *iterend,
 
 /*
  * Since we are locking the lsa in ospf6_lsdb_head
- * and then unlocking it in lspf6_lsa_lock, when
+ * and then unlocking it in ospf6_lsa_unlock, when
  * we cache the next pointer we need to increment
- * the lock for the lsa so we don't accidently free
+ * the lock for the lsa so we don't accidentally free
  * it really early.
  */
 #define ALL_LSDB(lsdb, lsa, lsanext)                                           \
        const struct route_node *iterend =                                     \
                ospf6_lsdb_head(lsdb, 0, 0, 0, &lsa);                          \
-       (lsa) != NULL &&ospf6_lsa_lock(lsa)                                    \
+       (lsa) != NULL && ospf6_lsa_lock(lsa)                                   \
                && ((lsanext) = ospf6_lsdb_next(iterend, (lsa)), 1);           \
        ospf6_lsa_unlock(lsa), (lsa) = (lsanext)