]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Ensure new generation_id is different from previous
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Jul 2015 17:22:49 +0000 (13:22 -0400)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 26 May 2016 00:38:33 +0000 (20:38 -0400)
commitc29c0f61de9d8ae208aeffe919942b113f3271d4
tree0431b40d7cc623b310087f4b0d0ce11202c327f0
parentf6f9c0094a4e7ec2ab6d3ebcd10e4f9a763e1b7f
pimd: Ensure new generation_id is different from previous

The RFC states that an interfaces generation_id must be changed
if it experiences an if down.  From 4.3.1:

The GenID option contains a randomly generated
32-bit value that is regenerated each time PIM forwarding is started
or restarted on the interface, including when the router itself
restarts.

Since we are only grabbing a new generation_id without comparing
it to the previous generation_id, it is possible that random
can generate the exact same number.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_pim.c