diff options
| author | anlan_cs <vic.lan@pica8.com> | 2023-04-16 21:26:36 +0800 |
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2023-04-17 09:07:37 +0800 |
| commit | 3d8814f8272ecce7b7aafa2a29585dc1ecaba772 (patch) | |
| tree | 3abe0cddddb0182315e98a12236a76407f4287db | |
| parent | e88e1c0e891bbbfe532ad9d6e0afdfdf7c911207 (diff) | |
pimd: Correct the wrong comment
Currently the function `pim_parse_nexthop_update()` clearly
updates nexthop interfaces even as PIM-disabled.
Just correct the wrong comments about those PIM-disabled interfaces
to avoid misleading.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
| -rw-r--r-- | pimd/pim_nht.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c index cb0d8c5c92..5f0f2a5933 100644 --- a/pimd/pim_nht.c +++ b/pimd/pim_nht.c @@ -737,7 +737,7 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS) pnc->last_update = pim_time_monotonic_usec(); if (nhr.nexthop_num) { - pnc->nexthop_num = 0; // Only increment for pim enabled rpf. + pnc->nexthop_num = 0; for (i = 0; i < nhr.nexthop_num; i++) { nexthop = nexthop_from_zapi_nexthop(&nhr.nexthops[i]); @@ -855,7 +855,8 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS) nhlist_tail = nexthop; nhlist_head = nexthop; } - // Only keep track of nexthops which are PIM enabled. + + // Keep track of all nexthops, even PIM-disabled ones. pnc->nexthop_num++; } /* Reset existing pnc->nexthop before assigning new list */ |
