summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_pbr.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-02-16 02:11:12 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-03-09 17:07:41 +0100
commit1fbfe5a57249d907b44b31f9031b27eb59a606d4 (patch)
treea51b4f898711ed61424e65593408fcbb5c0f1901 /zebra/zebra_pbr.h
parentzebra: Cleanup a couple of api issues (diff)
downloadfrr-1fbfe5a57249d907b44b31f9031b27eb59a606d4.tar.xz
frr-1fbfe5a57249d907b44b31f9031b27eb59a606d4.zip
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/zebra_pbr.h')
-rw-r--r--zebra/zebra_pbr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_pbr.h b/zebra/zebra_pbr.h
index b87388afc..6a97ef55e 100644
--- a/zebra/zebra_pbr.h
+++ b/zebra/zebra_pbr.h
@@ -90,6 +90,8 @@ struct zebra_pbr_rule {
struct zebra_pbr_action action;
};
+void zebra_pbr_add_rule(struct zebra_pbr_rule *rule, struct interface *ifp);
+void zebra_pbr_del_rule(struct zebra_pbr_rule *rule, struct interface *ifp);
/*
* Install specified rule for a specific interface.