summaryrefslogtreecommitdiff
path: root/zebra/zserv.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-02-15 20:11:12 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-03-09 11:07:41 -0500
commit1fbfe5a57249d907b44b31f9031b27eb59a606d4 (patch)
treea51b4f898711ed61424e65593408fcbb5c0f1901 /zebra/zserv.c
parentfd71d73eb307096d9f14804fdac9123742d868b1 (diff)
zebra: Cleanup api
Allow the add/delete to go through a intermediary function in zebra_pbr.c instead of directly to the underlying os call. This will allow future refinements to track the data a bit better so that on shutdown we can delete the rules. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r--zebra/zserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 007a02cedf..7ec8525f49 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -2636,7 +2636,7 @@ static inline void zread_rule(uint16_t command, struct zserv *client,
if (zpr.filter.dst_port)
zpr.filter.filter_bm |= PBR_FILTER_DST_PORT;
- kernel_add_pbr_rule(&zpr, ifp);
+ zebra_pbr_add_rule(&zpr, ifp);
}
stream_failure: