diff options
| author | David Lamparter <equinox@diac24.net> | 2017-09-05 18:15:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-05 18:15:51 +0200 |
| commit | 981283aa726447127a15bf3d4e65a4238b977e28 (patch) | |
| tree | e27cae86e1110932c8f9ec6f7adfc3ff199aabfb /ospfd/ospf_interface.c | |
| parent | eb1e453f9a4ff7c1c805b2f5ea90df328b027e39 (diff) | |
| parent | 60bfa4435c25c87b070f991ec32522440fe8efeb (diff) | |
Merge pull request #1058 from chiragshah6/mdev
ospfd: fix route_node_get
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); |
