diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-16 16:01:03 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-16 16:07:11 +0100 |
commit | 608c887069173344b7bb6b1d3d4a59841ecdff4b (patch) | |
tree | 7efa49b17948a3fbc7638b4d9f46a87322851e89 /lib/if.h | |
parent | Merge pull request #10072 from idryzhov/zebra-memleak (diff) | |
download | frr-608c887069173344b7bb6b1d3d4a59841ecdff4b.tar.xz frr-608c887069173344b7bb6b1d3d4a59841ecdff4b.zip |
*: 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 'lib/if.h')
-rw-r--r-- | lib/if.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -542,9 +542,9 @@ extern int if_is_up(const struct interface *ifp); extern int if_is_running(const struct interface *ifp); extern int if_is_operative(const struct interface *ifp); extern int if_is_no_ptm_operative(const struct interface *ifp); -extern int if_is_loopback(const struct interface *ifp); +extern int if_is_loopback_exact(const struct interface *ifp); extern int if_is_vrf(const struct interface *ifp); -extern bool if_is_loopback_or_vrf(const struct interface *ifp); +extern bool if_is_loopback(const struct interface *ifp); extern int if_is_broadcast(const struct interface *ifp); extern int if_is_pointopoint(const struct interface *ifp); extern int if_is_multicast(const struct interface *ifp); |