2 * Zebra Policy Based Routing (PBR) interaction with the kernel using
4 * Copyright (C) 2018 Cumulus Networks, Inc.
7 * This file is part of FRR.
9 * FRR is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2, or (at your option) any
14 * FRR is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with FRR; see the file COPYING. If not, write to the Free
21 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
32 #include "lib_errors.h"
34 #include "zebra/zserv.h"
35 #include "zebra/zebra_ns.h"
36 #include "zebra/zebra_vrf.h"
38 #include "zebra/interface.h"
39 #include "zebra/debug.h"
40 #include "zebra/rtadv.h"
41 #include "zebra/kernel_netlink.h"
42 #include "zebra/rule_netlink.h"
43 #include "zebra/zebra_pbr.h"
44 #include "zebra/zebra_errors.h"
46 enum zebra_dplane_result
kernel_add_pbr_rule(struct zebra_pbr_rule
*rule
)
48 flog_err(EC_LIB_UNAVAILABLE
, "%s not Implemented for this platform",
50 return ZEBRA_DPLANE_REQUEST_FAILURE
;
53 enum zebra_dplane_result
kernel_del_pbr_rule(struct zebra_pbr_rule
*rule
)
55 flog_err(EC_LIB_UNAVAILABLE
, "%s not Implemented for this platform",
57 return ZEBRA_DPLANE_REQUEST_FAILURE
;
60 enum zebra_dplane_result
kernel_update_pbr_rule(struct zebra_pbr_rule
*old_rule
,
61 struct zebra_pbr_rule
*new_rule
)
63 flog_err(EC_LIB_UNAVAILABLE
, "%s not Implemented for this platform",
65 return ZEBRA_DPLANE_REQUEST_FAILURE
;