]> git.proxmox.com Git - mirror_frr.git/commit
ripngd: remove the ripng 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)
commit5c84b9a58153f89379e3a99e02173662ea390489
treeea4f0cf53f25e43ace1eeb7b3028cba9526e6859
parent26c6be9314b4013cedaf0a9f5ff5d65ca4ae685b
ripngd: remove the ripng global variable

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

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

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

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripngd/ripng_interface.c
ripngd/ripng_main.c
ripngd/ripng_nexthop.c
ripngd/ripng_northbound.c
ripngd/ripng_offset.c
ripngd/ripng_peer.c
ripngd/ripng_route.c
ripngd/ripng_route.h
ripngd/ripng_zebra.c
ripngd/ripngd.c
ripngd/ripngd.h