summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_reply.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-23 21:31:02 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-24 14:09:03 +0200
commit476a146963c960a28c044d89840d9f0cbb41c62e (patch)
treeaed3f9f51c4f4be0239e0ed14c2bf1387e469112 /eigrpd/eigrp_reply.c
parenteigrpd: Refactor to use 'struct prefix' for eigrp_zebra.h (diff)
downloadfrr-476a146963c960a28c044d89840d9f0cbb41c62e.tar.xz
frr-476a146963c960a28c044d89840d9f0cbb41c62e.zip
eigrpd: Refactor eigrp_topoloy_table_lookup_ipv4
Allow eigrp_topology_table_lookup_ipv4 to use 'struct prefix' Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_reply.c')
-rw-r--r--eigrpd/eigrp_reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eigrpd/eigrp_reply.c b/eigrpd/eigrp_reply.c
index cc70d1cfe..2b5b0aa44 100644
--- a/eigrpd/eigrp_reply.c
+++ b/eigrpd/eigrp_reply.c
@@ -179,14 +179,14 @@ void eigrp_reply_receive(struct eigrp *eigrp, struct ip *iph,
while (s->endp > s->getp) {
type = stream_getw(s);
if (type == EIGRP_TLV_IPv4_INT) {
- struct prefix_ipv4 dest_addr;
+ struct prefix dest_addr;
stream_set_getp(s, s->getp - sizeof(u_int16_t));
tlv = eigrp_read_ipv4_tlv(s);
dest_addr.family = AF_INET;
- dest_addr.prefix = tlv->destination;
+ dest_addr.u.prefix4 = tlv->destination;
dest_addr.prefixlen = tlv->prefix_length;
struct eigrp_prefix_entry *dest =
eigrp_topology_table_lookup_ipv4(