summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_dump.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-11-22 14:17:27 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-11-22 14:36:29 +0100
commitd2d3d394150f04a512d4ad4a3de0d84b0c1a31d5 (patch)
tree04267146b7118df4a43824ab05af19e98fa43912 /eigrpd/eigrp_dump.c
parenteigrpd: Cleanup eigrp_if_name_string (diff)
downloadfrr-d2d3d394150f04a512d4ad4a3de0d84b0c1a31d5.tar.xz
frr-d2d3d394150f04a512d4ad4a3de0d84b0c1a31d5.zip
eigrpd: Cleanup address dump functions to be a bit smarter
The address dump functionality needed to be written a bit better. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_dump.c')
-rw-r--r--eigrpd/eigrp_dump.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/eigrpd/eigrp_dump.c b/eigrpd/eigrp_dump.c
index 15c7a2063..7278b002d 100644
--- a/eigrpd/eigrp_dump.c
+++ b/eigrpd/eigrp_dump.c
@@ -150,48 +150,6 @@ const char *eigrp_if_name_string(struct eigrp_interface *ei)
return ei->ifp->name;
}
-const char *eigrp_topology_ip_string(struct eigrp_prefix_entry *tn)
-{
- static char buf[EIGRP_IF_STRING_MAXLEN] = "";
- uint32_t ifaddr;
-
- ifaddr = ntohl(tn->destination->u.prefix4.s_addr);
- snprintf(buf, EIGRP_IF_STRING_MAXLEN, "%u.%u.%u.%u",
- (ifaddr >> 24) & 0xff, (ifaddr >> 16) & 0xff,
- (ifaddr >> 8) & 0xff, ifaddr & 0xff);
- return buf;
-}
-
-
-const char *eigrp_if_ip_string(struct eigrp_interface *ei)
-{
- static char buf[EIGRP_IF_STRING_MAXLEN] = "";
- uint32_t ifaddr;
-
- if (!ei)
- return "inactive";
-
- ifaddr = ntohl(ei->address.u.prefix4.s_addr);
- snprintf(buf, EIGRP_IF_STRING_MAXLEN, "%u.%u.%u.%u",
- (ifaddr >> 24) & 0xff, (ifaddr >> 16) & 0xff,
- (ifaddr >> 8) & 0xff, ifaddr & 0xff);
-
- return buf;
-}
-
-const char *eigrp_neigh_ip_string(struct eigrp_neighbor *nbr)
-{
- static char buf[EIGRP_IF_STRING_MAXLEN] = "";
- uint32_t ifaddr;
-
- ifaddr = ntohl(nbr->src.s_addr);
- snprintf(buf, EIGRP_IF_STRING_MAXLEN, "%u.%u.%u.%u",
- (ifaddr >> 24) & 0xff, (ifaddr >> 16) & 0xff,
- (ifaddr >> 8) & 0xff, ifaddr & 0xff);
-
- return buf;
-}
-
void show_ip_eigrp_interface_header(struct vty *vty, struct eigrp *eigrp)
{