diff options
Diffstat (limited to 'ospfd/ospf_interface.c')
| -rw-r--r-- | ospfd/ospf_interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 54639afd6c..422e1a2a6b 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -171,6 +171,7 @@ static void ospf_add_to_if(struct interface *ifp, struct ospf_interface *oi) p = *oi->address; p.prefixlen = IPV4_MAX_PREFIXLEN; + apply_mask(&p); rn = route_node_get(IF_OIFS(ifp), &p); /* rn->info should either be NULL or equal to this oi @@ -562,6 +563,7 @@ struct ospf_if_params *ospf_get_if_params(struct interface *ifp, p.family = AF_INET; p.prefixlen = IPV4_MAX_PREFIXLEN; p.prefix = addr; + apply_mask_ipv4(&p); rn = route_node_get(IF_OIFS_PARAMS(ifp), (struct prefix *)&p); |
