Skip to content

Commit

Permalink
PimDm: Changed isOlistNull condition to consider local delivery.
Browse files Browse the repository at this point in the history
  • Loading branch information
levy committed Feb 9, 2024
1 parent 49180a8 commit 35ec305
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/inet/routing/pim/modes/PimDm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,9 @@ PimDm::DownstreamInterface *PimDm::Route::removeDownstreamInterface(int interfac

bool PimDm::Route::isOlistNull()
{
// the multicast tree cannot be pruned if local delivery is needed, so we pretend there's an out interface
if (static_cast<PimDm *>(owner)->isMulticastGroupJoined(group))
return false;
for (auto& elem : downstreamInterfaces) {
if (elem->isInOlist())
return false;
Expand Down

0 comments on commit 35ec305

Please sign in to comment.