mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
Merge pull request #9095 from opensourcerouting/ospfv3-stub-def-always
ospf6d: always generate default route for stubs
This commit is contained in:
commit
e2d17cd9b0
@ -710,24 +710,11 @@ void ospf6_abr_defaults_to_stub(struct ospf6 *o)
|
|||||||
struct listnode *node, *nnode;
|
struct listnode *node, *nnode;
|
||||||
struct ospf6_area *oa;
|
struct ospf6_area *oa;
|
||||||
struct ospf6_route *def, *route;
|
struct ospf6_route *def, *route;
|
||||||
struct ospf6_redist *red;
|
|
||||||
int type = DEFAULT_ROUTE;
|
int type = DEFAULT_ROUTE;
|
||||||
struct prefix_ipv6 p = {};
|
|
||||||
|
|
||||||
if (!o->backbone)
|
if (!o->backbone)
|
||||||
return;
|
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 = ospf6_route_create();
|
||||||
def->type = OSPF6_DEST_TYPE_NETWORK;
|
def->type = OSPF6_DEST_TYPE_NETWORK;
|
||||||
def->prefix.family = AF_INET6;
|
def->prefix.family = AF_INET6;
|
||||||
|
Loading…
Reference in New Issue
Block a user