diff --git a/pimd/pim_addr.c b/pimd/pim_addr.c index bc9beca4ef..825f38274a 100644 --- a/pimd/pim_addr.c +++ b/pimd/pim_addr.c @@ -48,6 +48,9 @@ static ssize_t printfrr_pimaddr(struct fbuf *buf, struct printfrr_eargs *ea, #if PIM_IPV == 4 return bprintfrr(buf, "%pI4", addr); +#elif !defined(PIM_V6_TEMP_BREAK) + CPP_NOTICE("note IPv6 typing for pim_addr is temporarily disabled."); + return bprintfrr(buf, "%pI4", addr); #else return bprintfrr(buf, "%pI6", addr); #endif diff --git a/pimd/pim_addr.h b/pimd/pim_addr.h index 1e9da77779..a1a8b55a5c 100644 --- a/pimd/pim_addr.h +++ b/pimd/pim_addr.h @@ -22,7 +22,11 @@ #include "jhash.h" -#if PIM_IPV == 4 +/* temporarily disable IPv6 types to keep code compiling. + * Defining PIM_V6_TEMP_BREAK will show a lot of compile errors - they are + * very useful to see TODOs. + */ +#if PIM_IPV == 4 || !defined(PIM_V6_TEMP_BREAK) typedef struct in_addr pim_addr; #define PIM_ADDRSTRLEN INET_ADDRSTRLEN #else diff --git a/pimd/subdir.am b/pimd/subdir.am index 355389ed74..ff20164c06 100644 --- a/pimd/subdir.am +++ b/pimd/subdir.am @@ -158,7 +158,7 @@ if DEV_BUILD # (change noinst_ to sbin_ below to install it.) # noinst_PROGRAMS += pimd/pim6d -pimd_pim6d_CFLAGS = $(AM_CFLAGS) -DPIM_IPV=6 +pimd_pim6d_CFLAGS = $(AM_CFLAGS) -DPIM_IPV=6 $(and $(PIM_V6_TEMP_BREAK),-DPIM_V6_TEMP_BREAK) pimd_pim6d_LDADD = lib/libfrr.la $(LIBCAP) endif endif