diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-02-11 13:16:35 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-02-11 13:16:35 +0100 |
commit | b245781a6bc53a28da5a0fc3c2a7b2d8954f0b04 (patch) | |
tree | 3967ea59f28c94c5c9eb5818c2300ed9ab8468f7 /eigrpd/eigrp_hello.c | |
parent | eigrpd: Remove unnecessary test for pointer (diff) | |
download | frr-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_hello.c')
-rw-r--r-- | eigrpd/eigrp_hello.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_hello.c b/eigrpd/eigrp_hello.c index 413a35f2f..b4d850be0 100644 --- a/eigrpd/eigrp_hello.c +++ b/eigrpd/eigrp_hello.c @@ -248,7 +248,7 @@ static void eigrp_peer_termination_decode(struct eigrp_neighbor *nbr, struct TLV_Peer_Termination_type *param = (struct TLV_Peer_Termination_type *)tlv; - uint32_t my_ip = nbr->ei->address->u.prefix4.s_addr; + uint32_t my_ip = nbr->ei->address.u.prefix4.s_addr; uint32_t received_ip = param->neighbor_ip; if (my_ip == received_ip) { |