From 608c887069173344b7bb6b1d3d4a59841ecdff4b Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Tue, 16 Nov 2021 18:01:03 +0300 Subject: *: unify if_is_loopback/if_is_loopback_or_vrf We should always treat the VRF interface as a loopback. Currently, this is not the case, because in some old pre-VRF code we use if_is_loopback instead of if_is_loopback_or_vrf. To avoid any future problems, the proposal is to rename if_is_loopback_or_vrf to if_is_loopback and use it everywhere. if_is_loopback is renamed to if_is_loopback_exact in case it's ever needed, but currently it's not used anywhere. Signed-off-by: Igor Ryzhov --- pimd/pim_vxlan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pimd/pim_vxlan.h') diff --git a/pimd/pim_vxlan.h b/pimd/pim_vxlan.h index ce9054cd2..d17de8e3d 100644 --- a/pimd/pim_vxlan.h +++ b/pimd/pim_vxlan.h @@ -116,7 +116,7 @@ static inline bool pim_vxlan_is_local_sip(struct pim_upstream *up) { return (up->sg.src.s_addr != INADDR_ANY) && up->rpf.source_nexthop.interface && - if_is_loopback_or_vrf(up->rpf.source_nexthop.interface); + if_is_loopback(up->rpf.source_nexthop.interface); } static inline bool pim_vxlan_is_term_dev_cfg(struct pim_instance *pim, -- cgit v1.2.3