summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_top.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-04-13 01:58:45 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-09-10 16:10:22 +0200
commitcf319495a41d9bc8b2b3b25383fb8b32a00ae402 (patch)
treef2db5788c90123398782d44adec1bf93a95dc81b /ospf6d/ospf6_top.c
parentMerge pull request #4951 from qlyoung/doc-fix-edgar-dijkstra-spelling (diff)
downloadfrr-cf319495a41d9bc8b2b3b25383fb8b32a00ae402.tar.xz
frr-cf319495a41d9bc8b2b3b25383fb8b32a00ae402.zip
ospf6: Add vrf_id to the ospf6 data structure
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_top.c')
-rw-r--r--ospf6d/ospf6_top.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c
index 40c612381..95dafff84 100644
--- a/ospf6d/ospf6_top.c
+++ b/ospf6d/ospf6_top.c
@@ -136,7 +136,7 @@ static void ospf6_top_brouter_hook_remove(struct ospf6_route *route)
ospf6_abr_originate_summary(route);
}
-static struct ospf6 *ospf6_create(void)
+static struct ospf6 *ospf6_create(vrf_id_t vrf_id)
{
struct ospf6 *o;
@@ -144,6 +144,7 @@ static struct ospf6 *ospf6_create(void)
/* initialize */
monotime(&o->starttime);
+ o->vrf_id = vrf_id;
o->area_list = list_new();
o->area_list->cmp = ospf6_area_cmp;
o->lsdb = ospf6_lsdb_create(o);
@@ -325,7 +326,7 @@ DEFUN_NOSH (router_ospf6,
OSPF6_STR)
{
if (ospf6 == NULL) {
- ospf6 = ospf6_create();
+ ospf6 = ospf6_create(VRF_DEFAULT);
if (ospf6->router_id == 0)
ospf6_router_id_update();
}