From e07fe9e6585f508d4af0ace192d267e7a383c32d Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 10 May 2017 08:50:16 -0400 Subject: pimd: Save pim instance on vrf pointer This commit does these things: 1) Saves the pim instance created on the vrf pointer 2) Moves some initialization to the proper spot. 3) Remove vrf_id from 'struct pim_ssm' it is not needed 4) Removes some checks to prevent non-default vrf's from being created. 5) When creating the pim instance, save default vrf in pimg to allow backwards compatibility Signed-off-by: Donald Sharp --- pimd/pimd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pimd/pimd.h') diff --git a/pimd/pimd.h b/pimd/pimd.h index c2868105d..88151b0e9 100644 --- a/pimd/pimd.h +++ b/pimd/pimd.h @@ -237,8 +237,8 @@ enum pim_spt_switchover { /* Per VRF PIM DB */ struct pim_instance { - afi_t afi; vrf_id_t vrf_id; + struct vrf *vrf; struct { enum pim_spt_switchover switchover; -- cgit v1.2.3