diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-03-10 11:22:32 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-03-12 22:47:13 +0100 |
| commit | cfef61553f3d97405d22553c88f1e7b3fb98f24b (patch) | |
| tree | 7870cbc3981ee642a6964ffab3072329143764f5 /pimd/pim_zebra.c | |
| parent | cd6d285855954039624f115a9fad7d4abbb4574d (diff) | |
pim6d: rework interface address tracking/selection
We only care about link-local addresses for IPv6 operation. Also, MLD
needs the lowest while PIM needs the highest...
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_zebra.c')
| -rw-r--r-- | pimd/pim_zebra.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index 91d4a479cf..1d5a3dd47f 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -179,8 +179,10 @@ static int pim_zebra_if_address_add(ZAPI_CALLBACK_ARGS) } } #else /* PIM_IPV != 4 */ - /* unused - for now */ (void)pim_ifp; + + if (p->family == PIM_AF) + pim_if_addr_add(c); #endif return 0; } @@ -229,6 +231,9 @@ static int pim_zebra_if_address_del(ZAPI_CALLBACK_ARGS) pim_rp_setup(pim); pim_i_am_rp_re_evaluate(pim); } +#else + if (p->family == PIM_AF) + pim_if_addr_del(c, 0); #endif connected_free(&c); |
