Skip to content

Commit 74aad5a

Browse files
Merge pull request FRRouting#13319 from anlancs/pimd-wrong-comment-nht
pimd: Correct the wrong comment
2 parents eda79af + 3d8814f commit 74aad5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pimd/pim_nht.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS)
737737
pnc->last_update = pim_time_monotonic_usec();
738738

739739
if (nhr.nexthop_num) {
740-
pnc->nexthop_num = 0; // Only increment for pim enabled rpf.
740+
pnc->nexthop_num = 0;
741741

742742
for (i = 0; i < nhr.nexthop_num; i++) {
743743
nexthop = nexthop_from_zapi_nexthop(&nhr.nexthops[i]);
@@ -855,7 +855,8 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS)
855855
nhlist_tail = nexthop;
856856
nhlist_head = nexthop;
857857
}
858-
// Only keep track of nexthops which are PIM enabled.
858+
859+
// Keep track of all nexthops, even PIM-disabled ones.
859860
pnc->nexthop_num++;
860861
}
861862
/* Reset existing pnc->nexthop before assigning new list */

0 commit comments

Comments
 (0)