summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_asbr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-21 14:40:51 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-21 14:40:51 +0200
commit19c0412aadd7ee454c9cfb4beffad69232c27330 (patch)
treecb72177857ea5c669182e4a420e987ac0d166dfb /ospfd/ospf_asbr.c
parentMerge pull request #2867 from dslicenc/show-route-leak-json (diff)
downloadfrr-19c0412aadd7ee454c9cfb4beffad69232c27330.tar.xz
frr-19c0412aadd7ee454c9cfb4beffad69232c27330.zip
ospfd: Remove unused function
The ospf_external_route_lookup function was not being used so let's just remove it. Unfortunately the removal was not quite so simple as that ospf_asbr.h was being used to generate a reference for the `struct ospf_route` data structure, so we need to fix up the compile by fixing up header inclusions so that ospf_route.h is actually included Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_asbr.c')
-rw-r--r--ospfd/ospf_asbr.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/ospfd/ospf_asbr.c b/ospfd/ospf_asbr.c
index 18c1077da..8e8f65530 100644
--- a/ospfd/ospf_asbr.c
+++ b/ospfd/ospf_asbr.c
@@ -73,26 +73,6 @@ void ospf_external_route_remove(struct ospf *ospf, struct prefix_ipv4 *p)
p->prefixlen);
}
-/* Lookup external route. */
-struct ospf_route *ospf_external_route_lookup(struct ospf *ospf,
- struct prefix_ipv4 *p)
-{
- struct route_node *rn;
-
- rn = route_node_lookup(ospf->old_external_route, (struct prefix *)p);
- if (rn) {
- route_unlock_node(rn);
- if (rn->info)
- return rn->info;
- }
-
- zlog_warn("Route[%s/%d]: lookup, no such prefix", inet_ntoa(p->prefix),
- p->prefixlen);
-
- return NULL;
-}
-
-
/* Add an External info for AS-external-LSA. */
struct external_info *ospf_external_info_new(uint8_t type,
unsigned short instance)