summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2009-08-07 10:48:14 +0000
committerDavid Lamparter <equinox@diac24.net>2010-02-04 01:55:32 +0100
commit90fa62d5fd1055bde66bd3a0b049fa13e2f54649 (patch)
tree56a3cad494ebc90917d4bea98a77b5167903e341
parentbc35a7894f18c3072c1d6d821db9bbbd79c0a9c1 (diff)
downloadquagga-90fa62d5fd1055bde66bd3a0b049fa13e2f54649.tar.bz2
quagga-90fa62d5fd1055bde66bd3a0b049fa13e2f54649.tar.xz
ospfd: Do not send host routes on unnumbered PtP I/F's
According to Acee Lindem, chairing the OSPF WG on IETF, one should not transmit Option 1 as described in 12.4.1.1. The text is unfortunately a bit unclear but the intention of the spec was not to emit Option 1 (nor Option 2) Changed to use CHECK_FLAG by David Lamparter. Cc: David Lamparter <equinox@diac24.net>
-rw-r--r--ospfd/ospf_lsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c
index 441b797d..125880f9 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -539,6 +539,8 @@ lsa_link_ptop_set (struct stream *s, struct ospf_interface *oi)
links += link_info_set (s, nbr->router_id, id,
LSA_LINK_TYPE_POINTOPOINT, 0, cost);
}
+ if (CHECK_FLAG(oi->ifp->status, ZEBRA_INTERFACE_UNNUMBERED))
+ return links;
/* Regardless of the state of the neighboring router, we must
add a Type 3 link (stub network).