diff options
Diffstat (limited to 'ospf6d/ospf6_abr.c')
| -rw-r--r-- | ospf6d/ospf6_abr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index a43118cb21..f289bf26b9 100644 --- a/ospf6d/ospf6_abr.c +++ b/ospf6d/ospf6_abr.c @@ -53,7 +53,7 @@ unsigned char conf_debug_ospf6_abr; -int ospf6_is_router_abr(struct ospf6 *o) +bool ospf6_check_and_set_router_abr(struct ospf6 *o) { struct listnode *node; struct ospf6_area *oa; @@ -74,12 +74,12 @@ int ospf6_is_router_abr(struct ospf6 *o) if (IS_OSPF6_DEBUG_ABR) zlog_debug("%s : set flag OSPF6_FLAG_ABR", __func__); SET_FLAG(o->flag, OSPF6_FLAG_ABR); - return 1; + return true; } else { if (IS_OSPF6_DEBUG_ABR) zlog_debug("%s : reset flag OSPF6_FLAG_ABR", __func__); UNSET_FLAG(o->flag, OSPF6_FLAG_ABR); - return 0; + return false; } } @@ -1359,7 +1359,7 @@ void ospf6_abr_reexport(struct ospf6_area *oa) struct ospf6_route *route; /* if not a ABR return success */ - if (!ospf6_is_router_abr(oa->ospf6)) + if (!ospf6_check_and_set_router_abr(oa->ospf6)) return; /* Redo summaries if required */ |
