summaryrefslogtreecommitdiffstats
path: root/pimd/pim_mlag.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-01-18 13:49:07 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-02-16 16:40:56 +0100
commitdeb76ca4ce5efa774f6b9ea530fa0737de3bdb48 (patch)
tree832a244bd7c5c79cd53b15845e407880c1ef5feb /pimd/pim_mlag.h
parentpim6d: drop off IGMP code (diff)
downloadfrr-deb76ca4ce5efa774f6b9ea530fa0737de3bdb48.tar.xz
frr-deb76ca4ce5efa774f6b9ea530fa0737de3bdb48.zip
pim6d: drop off MLAG code
Diffstat (limited to 'pimd/pim_mlag.h')
-rw-r--r--pimd/pim_mlag.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/pimd/pim_mlag.h b/pimd/pim_mlag.h
index 996e4d473..0555c7d3f 100644
--- a/pimd/pim_mlag.h
+++ b/pimd/pim_mlag.h
@@ -28,6 +28,7 @@
#include "mlag.h"
#include "pim_iface.h"
+#if PIM_IPV == 4
extern void pim_mlag_init(void);
extern void pim_mlag_terminate(void);
extern void pim_instance_mlag_init(struct pim_instance *pim);
@@ -52,4 +53,49 @@ extern void pim_mlag_up_local_del(struct pim_instance *pim,
extern bool pim_mlag_up_df_role_update(struct pim_instance *pim,
struct pim_upstream *up, bool is_df,
const char *reason);
+#else /* PIM_IPV == 4 */
+static inline void pim_mlag_terminate(void)
+{
+}
+
+static inline void pim_instance_mlag_init(struct pim_instance *pim)
+{
+}
+
+static inline void pim_instance_mlag_terminate(struct pim_instance *pim)
+{
+}
+
+static inline void pim_if_configure_mlag_dualactive(
+ struct pim_interface *pim_ifp)
+{
+}
+
+static inline void pim_if_unconfigure_mlag_dualactive(
+ struct pim_interface *pim_ifp)
+{
+}
+
+static inline void pim_mlag_register(void)
+{
+}
+
+static inline void pim_mlag_up_local_add(struct pim_instance *pim,
+ struct pim_upstream *upstream)
+{
+}
+
+static inline void pim_mlag_up_local_del(struct pim_instance *pim,
+ struct pim_upstream *upstream)
+{
+}
+
+static inline bool pim_mlag_up_df_role_update(struct pim_instance *pim,
+ struct pim_upstream *up,
+ bool is_df, const char *reason)
+{
+ return false;
+}
+#endif
+
#endif