summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_dump.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-02-11 13:16:35 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-02-11 13:16:35 +0100
commitb245781a6bc53a28da5a0fc3c2a7b2d8954f0b04 (patch)
tree3967ea59f28c94c5c9eb5818c2300ed9ab8468f7 /eigrpd/eigrp_dump.c
parenteigrpd: Remove unnecessary test for pointer (diff)
downloadfrr-b245781a6bc53a28da5a0fc3c2a7b2d8954f0b04.tar.xz
frr-b245781a6bc53a28da5a0fc3c2a7b2d8954f0b04.zip
eigrp: Make the eigrp_interface have a prefix instead of a *prefix
The prefix data structure was being freed yet still needed in the future and it's a fundamental part of the eigrp_interface data structure let's keep it there instead of having it be deleted and then not. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_dump.c')
-rw-r--r--eigrpd/eigrp_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_dump.c b/eigrpd/eigrp_dump.c
index 603329091..583db6622 100644
--- a/eigrpd/eigrp_dump.c
+++ b/eigrpd/eigrp_dump.c
@@ -174,7 +174,7 @@ const char *eigrp_if_ip_string(struct eigrp_interface *ei)
if (!ei)
return "inactive";
- ifaddr = ntohl(ei->address->u.prefix4.s_addr);
+ 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);