diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-08-10 16:16:22 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-21 20:26:06 -0500 |
| commit | 8e38a2cfccfdf7b47fb69d6fae26f83c5825d1a6 (patch) | |
| tree | 1aa68c55611deebe94e918c07c7f17dbab6b3046 /pimd/pim_mroute.c | |
| parent | 90d82769a88020c485118bc76faff15a2c8648cf (diff) | |
pimd: Fix RP shenanigans
The RP was not properly handling the series of events:
1) When a WRVIFWHOLE is received if we are the RP,
send a pim register stop to the FHR.
2) When a register was received we were sending
a join (S,G) towards the S, then a immediate prune (S,G)
followed by another join (S,G). Just send the first join
3) Save whom we received the S,G register from so we
can use it later
4) Allow a join timer to restart itself instead
of causing a crash.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_mroute.c')
| -rw-r--r-- | pimd/pim_mroute.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c index f6808feb49..9460219f13 100644 --- a/pimd/pim_mroute.c +++ b/pimd/pim_mroute.c @@ -26,6 +26,7 @@ #include "prefix.h" #include "pimd.h" +#include "pim_rpf.h" #include "pim_mroute.h" #include "pim_oil.h" #include "pim_str.h" @@ -345,6 +346,17 @@ pim_mroute_msg_wrvifwhole (int fd, struct interface *ifp, const char *buf) if (PIM_DEBUG_MROUTE) zlog_debug ("If channel: %p", ch); + up = pim_upstream_find (&sg); + if (up) + { + struct pim_nexthop source; + //No if channel, but upstream we are at the RP. + pim_nexthop_lookup (&source, up->upstream_register, NULL); + pim_register_stop_send(source.interface, &sg, up->upstream_register); + //Send S bit down the join. + return 0; + } + up = pim_upstream_add (&sg, ifp); if (!up) |
