summaryrefslogtreecommitdiff
path: root/proto/ospf/ospf.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-07-22 20:00:24 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-07-22 20:00:24 +0200
commit4160a9dd9416ee5afd215750bdd6c6e7a4e7ed1f (patch)
tree969093f281b848a3e96a660a7be37bfe084102f6 /proto/ospf/ospf.c
parent41b612c31be05409e69e7365db82b3d1aefc4ca3 (diff)
OSPF NSSA translator election.
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r--proto/ospf/ospf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index 320f4577..83bcad75 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -178,6 +178,9 @@ ospf_area_remove(struct ospf_area *oa)
fib_free(&oa->rtr);
fib_free(&oa->net_fib);
+ if (oa->translator_timer)
+ rfree(oa->translator_timer);
+
oa->po->areano--;
rem_node(NODE oa);
mb_free(oa);
@@ -803,6 +806,8 @@ ospf_sh(struct proto *p)
}
// FIXME NSSA:
// cli_msg(-1014, "\t\tStub:\t%s", oa->stub ? "Yes" : "No");
+ cli_msg(-1014, "\t\tNSSA translation:\t%s%s", oa->translate ? "Yes" : "No",
+ oa->translate == TRANS_WAIT ? " (run down)" : "");
cli_msg(-1014, "\t\tTransit:\t%s", oa->trcap ? "Yes" : "No");
cli_msg(-1014, "\t\tNumber of interfaces:\t%u", ifano);
cli_msg(-1014, "\t\tNumber of neighbors:\t%u", nno);