summaryrefslogtreecommitdiffstats
path: root/pimd/pim_iface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-17 20:09:06 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-17 20:09:06 +0200
commit85a13586ed7fa718d30f73afb443a48072dcb0d9 (patch)
tree248b02bc681c733ee772e9a5e1b2d6d038382016 /pimd/pim_iface.c
parentpimd: Actually create vif's in non-integrated config (diff)
downloadfrr-85a13586ed7fa718d30f73afb443a48072dcb0d9.tar.xz
frr-85a13586ed7fa718d30f73afb443a48072dcb0d9.zip
pimd: use bool instead of int to pass true/false
In pim_if_new use bool instead of an int to pass true/false values for what we should create the pim interface type for. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_iface.c')
-rw-r--r--pimd/pim_iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c
index 66773efb3..249b24c0d 100644
--- a/pimd/pim_iface.c
+++ b/pimd/pim_iface.c
@@ -108,7 +108,7 @@ static int pim_sec_addr_comp(const void *p1, const void *p2)
return 0;
}
-struct pim_interface *pim_if_new(struct interface *ifp, int igmp, int pim,
+struct pim_interface *pim_if_new(struct interface *ifp, bool igmp, bool pim,
bool ispimreg)
{
struct pim_interface *pim_ifp;
@@ -1468,7 +1468,7 @@ void pim_if_create_pimreg(struct pim_instance *pim)
pim->regiface = if_create(pimreg_name, pim->vrf_id);
pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF;
- pim_if_new(pim->regiface, 0, 0, true);
+ pim_if_new(pim->regiface, false, false, true);
}
}