]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_intra.h
ospf6d: introduce support for Graceful Restart (restarting mode)
[mirror_frr.git] / ospf6d / ospf6_intra.h
index 4031ffe6896c29e146d63526bc8c84e5513c5e26..f15bf0b9b4fa6d9ef6379e10f9745587932f8e8d 100644 (file)
@@ -192,12 +192,26 @@ struct ospf6_intra_prefix_lsa {
                                         oi, 0, &(oi)->thread_as_extern_lsa);  \
        } while (0)
 
+#define OSPF6_ROUTER_LSA_EXECUTE(oa)                                           \
+       do {                                                                   \
+               if (CHECK_FLAG((oa)->flag, OSPF6_AREA_ENABLE))                 \
+                       thread_execute(master, ospf6_router_lsa_originate, oa, \
+                                      0);                                     \
+       } while (0)
+
 #define OSPF6_NETWORK_LSA_EXECUTE(oi)                                          \
        do {                                                                   \
                THREAD_OFF((oi)->thread_network_lsa);                          \
                thread_execute(master, ospf6_network_lsa_originate, oi, 0);    \
        } while (0)
 
+#define OSPF6_LINK_LSA_EXECUTE(oi)                                             \
+       do {                                                                   \
+               if (!CHECK_FLAG((oi)->flag, OSPF6_INTERFACE_DISABLE))          \
+                       thread_execute(master, ospf6_link_lsa_originate, oi,   \
+                                      0);                                     \
+       } while (0)
+
 #define OSPF6_INTRA_PREFIX_LSA_EXECUTE_TRANSIT(oi)                             \
        do {                                                                   \
                THREAD_OFF((oi)->thread_intra_prefix_lsa);                     \