summaryrefslogtreecommitdiffstats
path: root/pimd/pim_static.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@hpe.com>2016-01-18 11:12:10 +0100
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-08-18 13:35:38 +0200
commitb892f1ddfe42a620d84b6c245d1997e4b560eea8 (patch)
treeacf13ca7ac43984b9215b0006d4d16fac2c281c3 /pimd/pim_static.c
parentMerge remote-tracking branch 'origin/cmaster' into cmaster-next (diff)
downloadfrr-b892f1ddfe42a620d84b6c245d1997e4b560eea8.tar.xz
frr-b892f1ddfe42a620d84b6c245d1997e4b560eea8.zip
*: use an ifindex_t type, defined in lib/if.h, for ifindex values
(cherry picked from commit 9099f9b2a66e86f8a90d7fe18f61bd2bb1bc6744)
Diffstat (limited to 'pimd/pim_static.c')
-rw-r--r--pimd/pim_static.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pimd/pim_static.c b/pimd/pim_static.c
index 1931f1ee6..c1154dc08 100644
--- a/pimd/pim_static.c
+++ b/pimd/pim_static.c
@@ -85,8 +85,8 @@ int pim_static_add(struct interface *iif, struct interface *oif, struct in_addr
struct static_route *original_s_route = 0;
struct pim_interface *pim_iif = iif ? iif->info : 0;
struct pim_interface *pim_oif = oif ? oif->info : 0;
- unsigned int iif_index = pim_iif ? pim_iif->mroute_vif_index : 0;
- unsigned int oif_index = pim_oif ? pim_oif->mroute_vif_index : 0;
+ ifindex_t iif_index = pim_iif ? pim_iif->mroute_vif_index : 0;
+ ifindex_t oif_index = pim_oif ? pim_oif->mroute_vif_index : 0;
if (!iif_index || !oif_index) {
zlog_warn("%s %s: Unable to add static route: Invalid interface index(iif=%d,oif=%d)",
@@ -229,8 +229,8 @@ int pim_static_del(struct interface *iif, struct interface *oif, struct in_addr
struct static_route *s_route = 0;
struct pim_interface *pim_iif = iif ? iif->info : 0;
struct pim_interface *pim_oif = oif ? oif->info : 0;
- unsigned int iif_index = pim_iif ? pim_iif->mroute_vif_index : 0;
- unsigned int oif_index = pim_oif ? pim_oif->mroute_vif_index : 0;
+ ifindex_t iif_index = pim_iif ? pim_iif->mroute_vif_index : 0;
+ ifindex_t oif_index = pim_oif ? pim_oif->mroute_vif_index : 0;
if (!iif_index || !oif_index) {
zlog_warn("%s %s: Unable to remove static route: Invalid interface index(iif=%d,oif=%d)",