summaryrefslogtreecommitdiff
path: root/ospfd/ospf_te.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_te.c')
-rw-r--r--ospfd/ospf_te.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c
index 05adc5aa4f..26df7a24cd 100644
--- a/ospfd/ospf_te.c
+++ b/ospfd/ospf_te.c
@@ -1161,16 +1161,13 @@ static struct ospf_lsa *ospf_mpls_te_lsa_new(struct ospf *ospf,
/* Set opaque-LSA header fields depending of the type of RFC */
if (IS_INTER_AS(lp->type)) {
- if
- IS_FLOOD_AS(lp->type)
- {
- options |= OSPF_OPTION_E; /* Enable AS external
- as we flood
- Inter-AS with
- Opaque Type 11 */
- lsa_type = OSPF_OPAQUE_AS_LSA;
- }
- else {
+ if (IS_FLOOD_AS(lp->type)) {
+ /* Enable AS external as we flood Inter-AS with Opaque
+ * Type 11
+ */
+ options |= OSPF_OPTION_E;
+ lsa_type = OSPF_OPAQUE_AS_LSA;
+ } else {
options |= LSA_OPTIONS_GET(
area); /* Get area default option */
options |= LSA_OPTIONS_NSSA_GET(area);
@@ -1210,12 +1207,12 @@ static struct ospf_lsa *ospf_mpls_te_lsa_new(struct ospf *ospf,
/* Now, create an OSPF LSA instance. */
if ((new = ospf_lsa_new()) == NULL) {
- zlog_warn("ospf_mpls_te_lsa_new: ospf_lsa_new() ?");
+ zlog_warn("%s: ospf_lsa_new() ?", __func__);
stream_free(s);
return NULL;
}
if ((new->data = ospf_lsa_data_new(length)) == NULL) {
- zlog_warn("ospf_mpls_te_lsa_new: ospf_lsa_data_new() ?");
+ zlog_warn("%s: ospf_lsa_data_new() ?", __func__);
ospf_lsa_unlock(&new);
new = NULL;
stream_free(s);