]> git.proxmox.com Git - mirror_frr.git/commit - ripd/ripd.c
ripd: remove the rip global variable
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)
commit045c5389c26347d47b2af6020c3a122398f13efb
tree82470cd9147b5032bac1d74a2e5b0d6eb42722c3
parent711915d2cdef4dcf41c6921f98de29946cab500e
ripd: remove the rip global variable

This is the last step to make ripd ready for multi-instance support.

Remove the rip global variable and add a "rip" parameter to all
functions that need to know the RIP instance they are working
on. On some functions, retrieve the RIP instance from the interface
variable when it exists (this assumes interfaces can pertain to
one RIP instance at most, which is ok for VRF support).

In preparation for the next commits (VRF support), add a "vrd_id"
member to the rip structure, and use rip->vrf_id instead of
VRF_DEFAULT wherever possible.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripd/rip_interface.c
ripd/rip_main.c
ripd/rip_northbound.c
ripd/rip_offset.c
ripd/rip_peer.c
ripd/rip_snmp.c
ripd/rip_zebra.c
ripd/ripd.c
ripd/ripd.h