diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-16 18:01:03 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-16 18:07:11 +0300 | 
| commit | 608c887069173344b7bb6b1d3d4a59841ecdff4b (patch) | |
| tree | 7efa49b17948a3fbc7638b4d9f46a87322851e89 /pimd/pim_vxlan.c | |
| parent | de093103cb859b7ec2349bf158764233efd15705 (diff) | |
*: 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 <iryzhov@nfware.com>
Diffstat (limited to 'pimd/pim_vxlan.c')
| -rw-r--r-- | pimd/pim_vxlan.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_vxlan.c b/pimd/pim_vxlan.c index 5d5ea1bfe6..2299f97ebd 100644 --- a/pimd/pim_vxlan.c +++ b/pimd/pim_vxlan.c @@ -1079,7 +1079,7 @@ void pim_vxlan_add_vif(struct interface *ifp)  	if (pim->vrf->vrf_id != VRF_DEFAULT)  		return; -	if (if_is_loopback_or_vrf(ifp)) +	if (if_is_loopback(ifp))  		pim_vxlan_set_default_iif(pim, ifp);  	if (vxlan_mlag.flags & PIM_VXLAN_MLAGF_ENABLED &&  | 
