]> git.puffer.fish Git - matthieu/frr.git/commit
pimd: Fix first DR Election
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 19 Jun 2015 00:01:34 +0000 (17:01 -0700)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 26 May 2016 00:38:32 +0000 (20:38 -0400)
commit818a327c242d0bb6c2e5ac4daad5f58c9cb11262
treebfa8a1e3592e9415af81e57cbacdc001fe135c0e
parentdedccda63ff8d030bb655178c708a85ad9ba8652
pimd: Fix first DR Election

The function pim_neighbor_new caused the dr election before
the addition of the neighbor to the pim_ifp->pim_neighbor_list,
in pim_neighbor_add, which is needed to properly elect the
correct DR.

Move the dr_election and hello trigger till after the addition
to the list.

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