summaryrefslogtreecommitdiffstats
path: root/zebra/rule_socket.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-05-25 16:54:50 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-05-30 14:05:28 +0200
commitebecd64913d21197465de56bbc69bdb61d265f2a (patch)
tree5f8d68d8dbaeda3184365ba216ecd97f93e69502 /zebra/rule_socket.c
parentzebra: Add a result from dataplane request (diff)
downloadfrr-ebecd64913d21197465de56bbc69bdb61d265f2a.tar.xz
frr-ebecd64913d21197465de56bbc69bdb61d265f2a.zip
zebra: Add knowledge of request success/failure for pbr rules
Add some nascent code to handle success/failure of the rule installation. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rule_socket.c')
-rw-r--r--zebra/rule_socket.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/zebra/rule_socket.c b/zebra/rule_socket.c
index 46c53f9e0..ecd642d80 100644
--- a/zebra/rule_socket.c
+++ b/zebra/rule_socket.c
@@ -41,11 +41,16 @@
#include "zebra/rule_netlink.h"
#include "zebra/zebra_pbr.h"
-void kernel_add_pbr_rule(struct zebra_pbr_rule *rule)
+enum dp_req_result kernel_add_pbr_rule(struct zebra_pbr_rule *rule)
{
+ zlog_err("%s not Implemented for this platform", __PRETTY_FUNCTION__);
+ return DP_REQUEST_FAILURE;
}
-void kernel_del_pbr_rule(struct zebra_pbr_rule *rule)
+
+enum dp_req_result kernel_del_pbr_rule(struct zebra_pbr_rule *rule)
{
+ zlog_err("%s not Implemented for this platform", __PRETTY_FUNCTION__);
+ return DP_REQUEST_FAILURE;
}
#endif