Skip to content

Commit

Permalink
Merge pull request #2881 from donaldsharp/external_removal
Browse files Browse the repository at this point in the history
ospfd: Remove unused function
  • Loading branch information
eqvinox committed Aug 21, 2018
2 parents 8732a8e + 19c0412 commit 5ab5e41
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 23 deletions.
1 change: 1 addition & 0 deletions ospfclient/ospf_apiclient.c
Expand Up @@ -46,6 +46,7 @@
#include "ospfd/ospf_lsdb.h"
#include "ospfd/ospf_neighbor.h"
#include "ospfd/ospf_dump.h"
#include "ospfd/ospf_route.h"
#include "ospfd/ospf_zebra.h"
#include "ospfd/ospf_api.h"

Expand Down
20 changes: 0 additions & 20 deletions ospfd/ospf_asbr.c
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions ospfd/ospf_asbr.h
Expand Up @@ -68,8 +68,6 @@ extern void ospf_external_info_delete(struct ospf *, uint8_t, unsigned short,
extern struct external_info *ospf_external_info_lookup(struct ospf *, uint8_t,
unsigned short,
struct prefix_ipv4 *);
extern struct ospf_route *ospf_external_route_lookup(struct ospf *,
struct prefix_ipv4 *);
extern void ospf_asbr_status_update(struct ospf *, uint8_t);

extern void ospf_redistribute_withdraw(struct ospf *, uint8_t, unsigned short);
Expand Down
1 change: 1 addition & 0 deletions ospfd/ospf_main.c
Expand Up @@ -49,6 +49,7 @@
#include "ospfd/ospf_lsdb.h"
#include "ospfd/ospf_neighbor.h"
#include "ospfd/ospf_dump.h"
#include "ospfd/ospf_route.h"
#include "ospfd/ospf_zebra.h"
#include "ospfd/ospf_vty.h"
#include "ospfd/ospf_bfd.h"
Expand Down
1 change: 1 addition & 0 deletions ospfd/ospf_snmp.c
Expand Up @@ -47,6 +47,7 @@
#include "ospfd/ospf_flood.h"
#include "ospfd/ospf_ism.h"
#include "ospfd/ospf_dump.h"
#include "ospfd/ospf_route.h"
#include "ospfd/ospf_zebra.h"

/* OSPF2-MIB. */
Expand Down
2 changes: 1 addition & 1 deletion ospfd/ospfd.c
Expand Up @@ -52,10 +52,10 @@
#include "ospfd/ospf_spf.h"
#include "ospfd/ospf_packet.h"
#include "ospfd/ospf_dump.h"
#include "ospfd/ospf_route.h"
#include "ospfd/ospf_zebra.h"
#include "ospfd/ospf_abr.h"
#include "ospfd/ospf_flood.h"
#include "ospfd/ospf_route.h"
#include "ospfd/ospf_ase.h"


Expand Down

0 comments on commit 5ab5e41

Please sign in to comment.