version 1.1.1.2.2.1, 2013/07/22 00:08:32
|
version 1.1.1.3, 2016/11/02 10:09:12
|
Line 44
|
Line 44
|
#include "ospfd/ospf_zebra.h" |
#include "ospfd/ospf_zebra.h" |
#include "ospfd/ospf_dump.h" |
#include "ospfd/ospf_dump.h" |
|
|
| |
/* Remove external route. */ |
/* Remove external route. */ |
void |
void |
ospf_external_route_remove (struct ospf *ospf, struct prefix_ipv4 *p) |
ospf_external_route_remove (struct ospf *ospf, struct prefix_ipv4 *p) |
Line 96 ospf_external_route_lookup (struct ospf *ospf,
|
Line 96 ospf_external_route_lookup (struct ospf *ospf,
|
return NULL; |
return NULL; |
} |
} |
|
|
| |
/* Add an External info for AS-external-LSA. */ |
/* Add an External info for AS-external-LSA. */ |
struct external_info * |
struct external_info * |
ospf_external_info_new (u_char type) |
ospf_external_info_new (u_char type) |
Line 136 ospf_route_map_set_compare (struct route_map_set_value
|
Line 136 ospf_route_map_set_compare (struct route_map_set_value
|
/* Add an External info for AS-external-LSA. */ |
/* Add an External info for AS-external-LSA. */ |
struct external_info * |
struct external_info * |
ospf_external_info_add (u_char type, struct prefix_ipv4 p, |
ospf_external_info_add (u_char type, struct prefix_ipv4 p, |
unsigned int ifindex, struct in_addr nexthop) | ifindex_t ifindex, struct in_addr nexthop) |
{ |
{ |
struct external_info *new; |
struct external_info *new; |
struct route_node *rn; |
struct route_node *rn; |
Line 165 ospf_external_info_add (u_char type, struct prefix_ipv
|
Line 165 ospf_external_info_add (u_char type, struct prefix_ipv
|
new->nexthop = nexthop; |
new->nexthop = nexthop; |
new->tag = 0; |
new->tag = 0; |
|
|
rn->info = new; | if (rn) |
| rn->info = new; |
|
|
if (IS_DEBUG_OSPF (lsa, LSA_GENERATE)) |
if (IS_DEBUG_OSPF (lsa, LSA_GENERATE)) |
zlog_debug ("Redistribute[%s]: %s/%d external info created.", |
zlog_debug ("Redistribute[%s]: %s/%d external info created.", |
Line 234 ospf_external_info_find_lsa (struct ospf *ospf,
|
Line 235 ospf_external_info_find_lsa (struct ospf *ospf,
|
return lsa; |
return lsa; |
} |
} |
|
|
| |
/* Update ASBR status. */ |
/* Update ASBR status. */ |
void |
void |
ospf_asbr_status_update (struct ospf *ospf, u_char status) |
ospf_asbr_status_update (struct ospf *ospf, u_char status) |
Line 264 ospf_asbr_status_update (struct ospf *ospf, u_char sta
|
Line 265 ospf_asbr_status_update (struct ospf *ospf, u_char sta
|
} |
} |
|
|
/* Transition from/to status ASBR, schedule timer. */ |
/* Transition from/to status ASBR, schedule timer. */ |
ospf_spf_calculate_schedule (ospf); | ospf_spf_calculate_schedule (ospf, SPF_FLAG_ASBR_STATUS_CHANGE); |
ospf_router_lsa_update (ospf); |
ospf_router_lsa_update (ospf); |
} |
} |
|
|