summaryrefslogtreecommitdiffstats
path: root/eigrpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-23 21:38:29 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-24 14:09:04 +0200
commit0ffa840756e10b6efb83e24aeaddf3e5f28c8ef3 (patch)
treeddc96d865fa60c1f0017c5c8ddec3e0f21fd920e /eigrpd
parenteigrpd: Refactor eigrp_network_[un]set to use prefix (diff)
downloadfrr-0ffa840756e10b6efb83e24aeaddf3e5f28c8ef3.tar.xz
frr-0ffa840756e10b6efb83e24aeaddf3e5f28c8ef3.zip
eigrpd: Remove 'struct prefix_ipv4' from eigrp_interface.c
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd')
-rw-r--r--eigrpd/eigrp_interface.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/eigrpd/eigrp_interface.c b/eigrpd/eigrp_interface.c
index 9f54b6235..ae9ec293c 100644
--- a/eigrpd/eigrp_interface.c
+++ b/eigrpd/eigrp_interface.c
@@ -225,14 +225,14 @@ void eigrp_del_if_params(struct eigrp_if_params *eip)
struct eigrp_if_params *eigrp_lookup_if_params(struct interface *ifp,
struct in_addr addr)
{
- struct prefix_ipv4 p;
+ struct prefix p;
struct route_node *rn;
p.family = AF_INET;
p.prefixlen = IPV4_MAX_PREFIXLEN;
- p.prefix = addr;
+ p.u.prefix4 = addr;
- rn = route_node_lookup(IF_OIFS_PARAMS(ifp), (struct prefix *)&p);
+ rn = route_node_lookup(IF_OIFS_PARAMS(ifp), &p);
if (rn) {
route_unlock_node(rn);
@@ -544,11 +544,11 @@ struct eigrp_interface *eigrp_if_lookup_recv_if(struct eigrp *eigrp,
struct interface *ifp)
{
struct route_node *rn;
- struct prefix_ipv4 addr;
+ struct prefix addr;
struct eigrp_interface *ei, *match;
addr.family = AF_INET;
- addr.prefix = src;
+ addr.u.prefix4 = src;
addr.prefixlen = IPV4_MAX_BITLEN;
match = NULL;
@@ -563,7 +563,7 @@ struct eigrp_interface *eigrp_if_lookup_recv_if(struct eigrp *eigrp,
continue;
if (prefix_match(CONNECTED_PREFIX(ei->connected),
- (struct prefix *)&addr)) {
+ &addr)) {
if ((match == NULL) || (match->address->prefixlen
< ei->address->prefixlen))
match = ei;