]> git.proxmox.com Git - mirror_frr.git/blame - zebra/rule_socket.c
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / zebra / rule_socket.c
CommitLineData
942bf97b 1/*
2 * Zebra Policy Based Routing (PBR) interaction with the kernel using
3 * netlink.
4 * Copyright (C) 2018 Cumulus Networks, Inc.
5 * Donald Sharp
6 *
7 * This file is part of FRR.
8 *
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
12 * later version.
13 *
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.
18 *
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
22 * 02111-1307, USA.
23 */
24
25#include <zebra.h>
26
27#ifndef HAVE_NETLINK
28
29#include "if.h"
30#include "prefix.h"
31#include "vrf.h"
67aeb554 32#include "lib_errors.h"
942bf97b 33
34#include "zebra/zserv.h"
35#include "zebra/zebra_ns.h"
36#include "zebra/zebra_vrf.h"
37#include "zebra/rt.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"
364fed6b 44#include "zebra/zebra_errors.h"
942bf97b 45
ea1c14f6 46enum zebra_dplane_result kernel_add_pbr_rule(struct zebra_pbr_rule *rule)
942bf97b 47{
450971aa 48 flog_err(EC_LIB_UNAVAILABLE, "%s not Implemented for this platform",
1c50c1c0 49 __PRETTY_FUNCTION__);
ea1c14f6 50 return ZEBRA_DPLANE_REQUEST_FAILURE;
942bf97b 51}
ebecd649 52
ea1c14f6 53enum zebra_dplane_result kernel_del_pbr_rule(struct zebra_pbr_rule *rule)
942bf97b 54{
450971aa 55 flog_err(EC_LIB_UNAVAILABLE, "%s not Implemented for this platform",
1c50c1c0 56 __PRETTY_FUNCTION__);
ea1c14f6 57 return ZEBRA_DPLANE_REQUEST_FAILURE;
942bf97b 58}
59
60#endif