troglobit / pimd

PIM-SM/SSM multicast routing for UNIX and Linux
http://troglobit.com/projects/pimd/
BSD 3-Clause "New" or "Revised" License
194 stars 86 forks source link

Misleading comment in add_rp_grp_entry(), suggests missing required processing #108

Open jp-t opened 7 years ago

jp-t commented 7 years ago

Since the RP hold time was fixed in RP #106, this comment in rp.c around line 380:

        /* TODO: We shoudn't have old existing entry, because with the
         * current implementation all of them will be deleted
         * (different fragment_tag). Debug and check and eventually
         * delete.
         */

is not true anymore. A debug log message in that place will appear very often.

Need to investigate and correct/remove the comment.

jp-t commented 7 years ago

Reading the whole function, it seems that the RP priority is not updated when an old rp_grp_entry is found, and if priority changed, the RP<=>group remapping does not take place. This might become an issue in corner cases where RP priorities change while running.

troglobit commented 7 years ago

Thank you for following up and reporting this!