]>
Commit | Line | Data |
---|---|---|
942bf97b | 1 | /* Zebra Policy Based Routing (PBR) main handling. |
2 | * Copyright (C) 2018 Cumulus Networks, Inc. | |
3 | * | |
4 | * This file is part of FRR. | |
5 | * | |
6 | * FRR is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License as published by the | |
8 | * Free Software Foundation; either version 2, or (at your option) any | |
9 | * later version. | |
10 | * | |
11 | * FRR is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | * General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with FRR; see the file COPYING. If not, write to the Free | |
18 | * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
19 | * 02111-1307, USA. | |
20 | */ | |
21 | ||
22 | #include <zebra.h> | |
23 | ||
24 | #include "zebra/zebra_pbr.h" | |
25 | #include "zebra/rt.h" | |
26 | ||
27 | /* definitions */ | |
28 | ||
29 | /* static function declarations */ | |
30 | ||
31 | /* Private functions */ | |
32 | ||
33 | /* Public functions */ | |
1fbfe5a5 DS |
34 | void zebra_pbr_add_rule(struct zebra_pbr_rule *rule, struct interface *ifp) |
35 | { | |
36 | kernel_add_pbr_rule(rule, ifp); | |
37 | } | |
38 | ||
39 | void zebra_pbr_del_rule(struct zebra_pbr_rule *rule, struct interface *ifp) | |
40 | { | |
41 | kernel_del_pbr_rule(rule, ifp); | |
42 | } | |
43 | ||
942bf97b | 44 | /* |
45 | * Handle success or failure of rule (un)install in the kernel. | |
46 | */ | |
47 | void kernel_pbr_rule_add_del_status(struct zebra_pbr_rule *rule, | |
48 | struct interface *ifp, | |
942bf97b | 49 | enum southbound_results res) |
50 | { | |
51 | } | |
52 | ||
53 | /* | |
54 | * Handle rule delete notification from kernel. | |
55 | */ | |
fd71d73e | 56 | int kernel_pbr_rule_del(struct zebra_pbr_rule *rule, struct interface *ifp) |
942bf97b | 57 | { |
58 | return 0; | |
59 | } | |
60 | ||
61 |