summaryrefslogtreecommitdiffstats
path: root/pimd/pim_iface.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-17 19:58:59 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-17 19:58:59 +0200
commit59752d4ea5fc500db2f659f85f2e8c68045a83b8 (patch)
tree20b40215ecb8fdc7ef066fc35cb6c6f87bb29522 /pimd/pim_iface.h
parentMerge pull request #3031 from pacovn/static_analysis__Wcomma (diff)
downloadfrr-59752d4ea5fc500db2f659f85f2e8c68045a83b8.tar.xz
frr-59752d4ea5fc500db2f659f85f2e8c68045a83b8.zip
pimd: Actually create vif's in non-integrated config
The startup of a non-integrated config was not properly allowing for startup to create the vif when we have not learned about the interface we are trying to configure at this point in time. Actually notice when we are trying to create a pimreg device or not to properly notice when to attempt to create the vif or not. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_iface.h')
-rw-r--r--pimd/pim_iface.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/pim_iface.h b/pimd/pim_iface.h
index 02926a697..189153449 100644
--- a/pimd/pim_iface.h
+++ b/pimd/pim_iface.h
@@ -154,7 +154,8 @@ struct pim_interface {
void pim_if_init(struct pim_instance *pim);
void pim_if_terminate(struct pim_instance *pim);
-struct pim_interface *pim_if_new(struct interface *ifp, int igmp, int pim);
+struct pim_interface *pim_if_new(struct interface *ifp, int igmp, int pim,
+ bool ispimreg);
void pim_if_delete(struct interface *ifp);
void pim_if_addr_add(struct connected *ifc);
void pim_if_addr_del(struct connected *ifc, int force_prim_as_any);
@@ -163,7 +164,7 @@ void pim_if_addr_del_all(struct interface *ifp);
void pim_if_addr_del_all_igmp(struct interface *ifp);
void pim_if_addr_del_all_pim(struct interface *ifp);
-int pim_if_add_vif(struct interface *ifp);
+int pim_if_add_vif(struct interface *ifp, bool ispimreg);
int pim_if_del_vif(struct interface *ifp);
void pim_if_add_vif_all(struct pim_instance *pim);
void pim_if_del_vif_all(struct pim_instance *pim);