summaryrefslogtreecommitdiff
path: root/pimd/pim_addr.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-01-10 09:40:50 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-01-12 18:24:07 +0100
commitbedc005a7ae9fd9e087f69a55f30daf47ff9d4a9 (patch)
tree197cbed4a48907cda158a169820022d5a380e413 /pimd/pim_addr.c
parent26625d514ad02fb7bd02eb8cc49f910840668d13 (diff)
pimd: temporarily disable IPv6 types
Just putting the infrastructure in place and having it disabled is actually good progress here; have the compiler make itself useful and tell us what we have to do to get the basics right. (The next commit will cause a *lot* of compile errors as soon as `PIM_V6_TEMP_BREAK` is set; but there is no reason to force everything into a single step here.) To enable `pim_addr = in6_addr`, run `make PIM_V6_TEMP_BREAK=1` (remove previous compile results with `rm pimd/pim6d-*.o`) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_addr.c')
-rw-r--r--pimd/pim_addr.c3
1 files changed, 3 insertions, 0 deletions
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