From 4160a9dd9416ee5afd215750bdd6c6e7a4e7ed1f Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 22 Jul 2011 20:00:24 +0200 Subject: OSPF NSSA translator election. --- proto/ospf/ospf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'proto/ospf/ospf.c') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 320f457..83bcad7 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); -- cgit v1.2.3