]> git.proxmox.com Git - mirror_frr.git/commit
lib, rip, ripng, babel, eigrp: add ctx pointer to distribute api
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 4 Dec 2018 14:45:57 +0000 (15:45 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 28 Dec 2018 17:18:40 +0000 (18:18 +0100)
commit03a38493f8b319a3fac139c8898eac53001ad151
treef90987f91bf09457877e01b1c6d694eec3ec3ee0
parent2569910bb6e5c00ececc60ed15b182e14a88cb9d
lib, rip, ripng, babel, eigrp: add ctx pointer to distribute api

a distribute_ctx context pointer is returned after initialisation to the
calling daemon. this context pointer will be further used to do
discussion with distribute service. Today, there is no specific problem
with old api, since the pointer is the same in all the memory process.
but the pointer will be different if we have multiple instances. Right
now, this is not the case, but if that happens, that work will be used
for that.
distribute-list initialisation is split in two. the vty initialisation
is done at global level, while the context initialisation is done for
each routing daemon instance.
babel daemon is being equipped with a routing returning the main babel
instance.
also, a delete routine is available when the daemon routing instance is
suppressed.
a list of contexts is used inside distribute_list. This will permit
distribute_list utility to handle in the same daemon to handle more than
one context. This will be very useful in the vrf context.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
16 files changed:
babeld/babel_filter.c
babeld/babel_interface.c
babeld/babeld.c
babeld/babeld.h
eigrpd/eigrp_filter.c
eigrpd/eigrp_filter.h
eigrpd/eigrp_main.c
eigrpd/eigrp_structs.h
eigrpd/eigrp_vty.c
eigrpd/eigrpd.c
lib/distribute.c
lib/distribute.h
ripd/ripd.c
ripd/ripd.h
ripngd/ripngd.c
ripngd/ripngd.h