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);
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;
continue;
if (prefix_match(CONNECTED_PREFIX(ei->connected),
- (struct prefix *)&addr)) {
+ &addr)) {
if ((match == NULL) || (match->address->prefixlen
< ei->address->prefixlen))
match = ei;