version 1.1.1.2, 2012/10/09 09:22:29
|
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 122 ospf_reset_route_map_set_values (struct route_map_set_
|
Line 122 ospf_reset_route_map_set_values (struct route_map_set_
|
{ |
{ |
values->metric = -1; |
values->metric = -1; |
values->metric_type = -1; |
values->metric_type = -1; |
|
values->nexthop.s_addr = -1; |
} |
} |
|
|
int |
int |
Line 135 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 164 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 233 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 263 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); |
} |
} |
|
|