summaryrefslogtreecommitdiffstats
path: root/zebra/rule_netlink.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2018-09-12 20:42:03 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-20 00:29:55 +0200
commitea1c14f6801881b7d2e1b4035b8f085f6d663927 (patch)
treed53b21413eae16dff9403f05f965ef52786a7e2c /zebra/rule_netlink.c
parentMerge pull request #3017 from pacovn/devbuild_Wshadow_flag (diff)
downloadfrr-ea1c14f6801881b7d2e1b4035b8f085f6d663927.tar.xz
frr-ea1c14f6801881b7d2e1b4035b8f085f6d663927.zip
zebra: Create zebra_dplane.c and .h
Add first sketchy 'dplane' files. Signed-off-by: Mark Stapp <mjs@voltanet.io> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rule_netlink.c')
-rw-r--r--zebra/rule_netlink.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/zebra/rule_netlink.c b/zebra/rule_netlink.c
index 518d81dd6..7686a0ac3 100644
--- a/zebra/rule_netlink.c
+++ b/zebra/rule_netlink.c
@@ -143,31 +143,31 @@ static int netlink_rule_update(int cmd, struct zebra_pbr_rule *rule)
* goes in the rule to denote relative ordering; it may or may not be the
* same as the rule's user-defined sequence number.
*/
-enum dp_req_result kernel_add_pbr_rule(struct zebra_pbr_rule *rule)
+enum zebra_dplane_result kernel_add_pbr_rule(struct zebra_pbr_rule *rule)
{
int ret = 0;
ret = netlink_rule_update(RTM_NEWRULE, rule);
kernel_pbr_rule_add_del_status(rule,
- (!ret) ? DP_INSTALL_SUCCESS
- : DP_INSTALL_FAILURE);
+ (!ret) ? ZEBRA_DPLANE_INSTALL_SUCCESS
+ : ZEBRA_DPLANE_INSTALL_FAILURE);
- return DP_REQUEST_SUCCESS;
+ return ZEBRA_DPLANE_REQUEST_SUCCESS;
}
/*
* Uninstall specified rule for a specific interface.
*/
-enum dp_req_result kernel_del_pbr_rule(struct zebra_pbr_rule *rule)
+enum zebra_dplane_result kernel_del_pbr_rule(struct zebra_pbr_rule *rule)
{
int ret = 0;
ret = netlink_rule_update(RTM_DELRULE, rule);
kernel_pbr_rule_add_del_status(rule,
- (!ret) ? DP_DELETE_SUCCESS
- : DP_DELETE_FAILURE);
+ (!ret) ? ZEBRA_DPLANE_DELETE_SUCCESS
+ : ZEBRA_DPLANE_DELETE_FAILURE);
- return DP_REQUEST_SUCCESS;
+ return ZEBRA_DPLANE_REQUEST_SUCCESS;
}
/*