]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: Correct the wrong comment
authoranlan_cs <vic.lan@pica8.com>
Sun, 16 Apr 2023 13:26:36 +0000 (21:26 +0800)
committeranlan_cs <vic.lan@pica8.com>
Mon, 17 Apr 2023 01:07:37 +0000 (09:07 +0800)
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>
pimd/pim_nht.c

index cb0d8c5c9231a857f3d7130fa50070bdcceb8b52..5f0f2a5933dc8bc043b9a7fee011b9df21bb740c 100644 (file)
@@ -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 */