summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2025-01-09 18:36:49 +0100
committerLouis Scalbert <louis.scalbert@6wind.com>2025-01-09 18:38:28 +0100
commit5100d842f68af3feab650f0d4ba0ea3dc3eecad0 (patch)
treecce55be7c9effff31ff9101d265376e71123f9b6 /lib/if.c
parentMerge pull request #17798 from mjstapp/fix_remove_clear_thread (diff)
downloadfrr-5100d842f68af3feab650f0d4ba0ea3dc3eecad0.tar.xz
frr-5100d842f68af3feab650f0d4ba0ea3dc3eecad0.zip
lib: remove interface dead code
Remove interface dead code. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/lib/if.c b/lib/if.c
index 586fc1d5c..864c82bbf 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -858,47 +858,6 @@ struct nbr_connected *nbr_connected_check(struct interface *ifp,
return NULL;
}
-/* Print if_addr structure. */
-static void __attribute__((unused))
-connected_log(struct connected *connected, char *str)
-{
- struct prefix *p;
- struct interface *ifp;
- char logbuf[BUFSIZ];
- char buf[BUFSIZ];
-
- ifp = connected->ifp;
- p = connected->address;
-
- snprintf(logbuf, sizeof(logbuf), "%s interface %s vrf %s(%u) %s %pFX ",
- str, ifp->name, ifp->vrf->name, ifp->vrf->vrf_id,
- prefix_family_str(p), p);
-
- p = connected->destination;
- if (p) {
- strlcat(logbuf, inet_ntop(p->family, &p->u.prefix, buf, BUFSIZ),
- BUFSIZ);
- }
- zlog_info("%s", logbuf);
-}
-
-/* Print if_addr structure. */
-static void __attribute__((unused))
-nbr_connected_log(struct nbr_connected *connected, char *str)
-{
- struct prefix *p;
- struct interface *ifp;
- char logbuf[BUFSIZ];
-
- ifp = connected->ifp;
- p = connected->address;
-
- snprintf(logbuf, sizeof(logbuf), "%s interface %s %s %pFX ", str,
- ifp->name, prefix_family_str(p), p);
-
- zlog_info("%s", logbuf);
-}
-
/* count the number of connected addresses that are in the given family */
unsigned int connected_count_by_family(struct interface *ifp, int family)
{