Add code to allow on interface up/down events the check of whether
or not this process is the RP.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
{
struct connected *c;
struct prefix *p;
+ struct in_addr old = { .s_addr = 0 };
/*
zebra api notifies address adds/dels events by using the same call
#endif
}
+ pim_rp_check_rp (old, p->u.prefix4);
+
if (!CHECK_FLAG(c->flags, ZEBRA_IFA_SECONDARY)) {
/* trying to add primary address */
{
struct connected *c;
struct prefix *p;
+ struct in_addr new = { .s_addr = 0 };
/*
zebra api notifies address adds/dels events by using the same call
#endif
}
+ pim_rp_check_rp (p->u.prefix4, new);
pim_if_addr_del(c, 0);
return 0;