return 0;
}
- oil_if_set(channel_oil, pim_ifp->mroute_vif_index, false);
+ oil_if_set(channel_oil, pim_ifp->mroute_vif_index, 0);
/* clear mute; will be re-evaluated when the OIF becomes valid again */
channel_oil->oif_flags[pim_ifp->mroute_vif_index] &= ~PIM_OIF_FLAG_MUTE;
return &c_oil->oil.mfcc_parent;
}
-static inline uint8_t oil_if_has(struct channel_oil *c_oil, vifi_t ifi)
+static inline bool oil_if_has(struct channel_oil *c_oil, vifi_t ifi)
{
- return c_oil->oil.mfcc_ttls[ifi];
+ return !!c_oil->oil.mfcc_ttls[ifi];
}
static inline void oil_if_set(struct channel_oil *c_oil, vifi_t ifi, uint8_t set)
return !!IF_ISSET(ifi, &c_oil->oil.mf6cc_ifset);
}
-static inline void oil_if_set(struct channel_oil *c_oil, mifi_t ifi, bool set)
+static inline void oil_if_set(struct channel_oil *c_oil, mifi_t ifi,
+ uint8_t set)
{
if (set)
IF_SET(ifi, &c_oil->oil.mf6cc_ifset);