]> git.puffer.fish Git - matthieu/frr.git/commit
ripngd: simplify cleaning up of routing instance
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 4 Jan 2019 21:08:10 +0000 (19:08 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 18 Jan 2019 18:15:41 +0000 (16:15 -0200)
commita9caf6e9399536bfe0383e9ab0a7b6f83972a2e5
treebc01d033c18c7aad5aaf899a4821134328c22075
parent045c5389c26347d47b2af6020c3a122398f13efb
ripngd: simplify cleaning up of routing instance

* Call ripng_clean() only when RIPng is configured, this way we can
  remove one indentation level from this function.
* ripng_redistribute_clean() is only called on shutdown, so there's
  no need to call ripng_redistribute_withdraw() there since the RIPng
  table is already cleaned up elsewhere.
* Deallocate the ripng structure only at the end of the function. This
  prepares the ground for the next commits where all global variables
  will be moved to the ripng structure.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripngd/ripng_main.c
ripngd/ripng_zebra.c
ripngd/ripngd.c