summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_query.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_query.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_query.c')
-rw-r--r--eigrpd/eigrp_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eigrpd/eigrp_query.c b/eigrpd/eigrp_query.c
index 475709731..0167c8b3c 100644
--- a/eigrpd/eigrp_query.c
+++ b/eigrpd/eigrp_query.c
@@ -91,7 +91,7 @@ void eigrp_query_receive(struct eigrp *eigrp, struct ip *iph,
{
struct eigrp_neighbor *nbr;
struct TLV_IPv4_Internal_type *tlv;
- struct prefix_ipv4 dest_addr;
+ struct prefix dest_addr;
u_int16_t type;
u_int16_t length;
@@ -116,7 +116,7 @@ void eigrp_query_receive(struct eigrp *eigrp, struct ip *iph,
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(