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/topology.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proto/ospf/topology.c') diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 54bc09c..f5f041e 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -222,6 +222,9 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length) if (po->areano > 1) rt->options |= OPT_RT_B; + if ((po->areano > 1) && oa_is_nssa(oa) && oa->ac->translator) + rt->options |= OPT_RT_NT; + if (po->ebit && !oa_is_stub(oa)) rt->options |= OPT_RT_E; @@ -388,6 +391,9 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length) if (po->areano > 1) rt->options |= OPT_RT_B; + if ((po->areano > 1) && oa_is_nssa(oa) && oa->ac->translator) + rt->options |= OPT_RT_NT; + if (po->ebit && !oa_is_stub(oa)) rt->options |= OPT_RT_E; -- cgit v1.2.3