summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_abr.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2021-07-20 14:43:03 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2021-07-20 14:43:03 +0200
commit80d1eb49b1b3986c86956b5ce473731b793bbf8b (patch)
treebd84228a7f9bcfe9e8ed2806d3e0a0711be26393 /ospf6d/ospf6_abr.c
parentMerge pull request #9080 from ton31337/fix/reason_bgpd (diff)
downloadfrr-80d1eb49b1b3986c86956b5ce473731b793bbf8b.tar.xz
frr-80d1eb49b1b3986c86956b5ce473731b793bbf8b.zip
ospf6d: always generate default route for stubs
In RFC 2328 OSPF Version 2, Section 12.4.3.1 "Originating summary-LSAs into stub areas" mentions that the stub areas should not import external routes and instead should generate a 'default summary-LSA' set to default destination. > In a stub area, instead of importing external routes > each area border router originates a "default summary- > LSA" into the area. The Link State ID for the default > summary-LSA is set to DefaultDestination, and the metric > set to the (per-area) configurable parameter > StubDefaultCost. Note that StubDefaultCost need not be > configured identically in all of the stub area's area > border routers. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_abr.c')
-rw-r--r--ospf6d/ospf6_abr.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c
index f289bf26b..cc99d7c38 100644
--- a/ospf6d/ospf6_abr.c
+++ b/ospf6d/ospf6_abr.c
@@ -710,24 +710,11 @@ void ospf6_abr_defaults_to_stub(struct ospf6 *o)
struct listnode *node, *nnode;
struct ospf6_area *oa;
struct ospf6_route *def, *route;
- struct ospf6_redist *red;
int type = DEFAULT_ROUTE;
- struct prefix_ipv6 p = {};
if (!o->backbone)
return;
- red = ospf6_redist_lookup(o, type, 0);
- if (!red)
- return;
-
- p.family = AF_INET6;
- p.prefixlen = 0;
-
- route = ospf6_route_lookup((struct prefix *)&p, o->external_table);
- if (!route)
- return;
-
def = ospf6_route_create();
def->type = OSPF6_DEST_TYPE_NETWORK;
def->prefix.family = AF_INET6;