summaryrefslogtreecommitdiff
path: root/eigrpd/eigrpd.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-01-14 08:58:36 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-02-19 21:11:13 +0100
commit4b23867cad558a59e8d315400b82c0453510c9af (patch)
tree659eb4c089bfca4451921697caad11eaa5bc2d18 /eigrpd/eigrpd.c
parent8faeb50fe40976313a309a0e1870e29bebd99fd6 (diff)
lib, rip, ripng, eigrp: rework if_rmap context
so as to handle ri/ripng/eigrp multiple instances, the need is to encapsulate if_rmap hash table into a container context self to each instance. This work then reviews the if_rmap api, mainly by adding a if_rmap_ctx context, that is passed for each exchange between library and the daemon. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'eigrpd/eigrpd.c')
-rw-r--r--eigrpd/eigrpd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/eigrpd/eigrpd.c b/eigrpd/eigrpd.c
index 69d947e59f..4f0a5d1b0f 100644
--- a/eigrpd/eigrpd.c
+++ b/eigrpd/eigrpd.c
@@ -206,6 +206,13 @@ static struct eigrp *eigrp_new(const char *AS)
eigrp_distribute_update);
distribute_list_delete_hook(eigrp->distribute_ctx,
eigrp_distribute_update);
+
+ /*
+ eigrp->if_rmap_ctx = if_rmap_ctx_create(
+ vrf_lookup_by_id(VRF_DEFAULT));
+ if_rmap_hook_add (eigrp_if_rmap_update);
+ if_rmap_hook_delete (eigrp_if_rmap_update);
+ */
QOBJ_REG(eigrp, eigrp);
return eigrp;
}