Skip to content

Commit 1662870

Browse files
authored
Merge pull request #20584 from FRRouting/mergify/bp/stable/10.4/pr-20576
pimd: Keep track of how long the S,G rpt Prune has been around (backport #20576)
2 parents 31b9af8 + 53e25e4 commit 1662870

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pimd/pim_ifchannel.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,7 @@ void pim_ifchannel_prune(struct interface *ifp, pim_addr upstream,
10781078
* causing it to expire immediately.
10791079
*/
10801080

1081+
ch->ifjoin_creation = pim_time_monotonic_sec();
10811082
pim_ifchannel_ifjoin_switch(__func__, ch,
10821083
PIM_IFJOIN_PRUNE_PENDING);
10831084

@@ -1133,6 +1134,7 @@ void pim_ifchannel_prune(struct interface *ifp, pim_addr upstream,
11331134
break;
11341135
case PIM_IFJOIN_PRUNE_PENDING_TMP:
11351136
if (source_flags & PIM_ENCODE_RPT_BIT) {
1137+
ch->ifjoin_creation = pim_time_monotonic_sec();
11361138
ch->ifjoin_state = PIM_IFJOIN_PRUNE_PENDING;
11371139
event_cancel(&ch->t_ifjoin_expiry_timer);
11381140
event_add_timer(router->master, on_ifjoin_expiry_timer,

0 commit comments

Comments
 (0)