diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-30 19:11:39 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-23 20:04:39 -0400 |
| commit | 6ca30e9ec6ed84d5ace735912bf69c45050adda6 (patch) | |
| tree | 2ffadfc6d1acf3f2019e9e96c552312af7b3aca9 /zebra/zebra_ns.c | |
| parent | 890ca17a08d4c8e89664c34594d1ec3eb171db04 (diff) | |
bgpd, lib, zebra: Wrapper get/set of table->info pointer
Wrapper the get/set of the table->info pointer so that
people are not directly accessing this data.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_ns.c')
| -rw-r--r-- | zebra/zebra_ns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_ns.c b/zebra/zebra_ns.c index c5e88daf79..e251b26be1 100644 --- a/zebra/zebra_ns.c +++ b/zebra/zebra_ns.c @@ -249,7 +249,7 @@ struct route_table *zebra_ns_get_table(struct zebra_ns *zns, info->zvrf = zvrf; info->afi = afi; info->safi = SAFI_UNICAST; - znst->table->info = info; + route_table_set_info(znst->table, info); znst->table->cleanup = zebra_rtable_node_cleanup; RB_INSERT(zebra_ns_table_head, &zns->ns_tables, znst); @@ -262,7 +262,7 @@ static void zebra_ns_free_table(struct zebra_ns_table *znst) rib_close_table(znst->table); - table_info = znst->table->info; + table_info = route_table_get_info(znst->table); route_table_finish(znst->table); XFREE(MTYPE_RIB_TABLE_INFO, table_info); XFREE(MTYPE_ZEBRA_NS, znst); |
