]>
Commit | Line | Data |
---|---|---|
e5c83d9b DS |
1 | /* |
2 | * Zebra connect library for PBR | |
3 | * Copyright (C) 2018 Cumulus Networks, Inc. | |
4 | * Donald Sharp | |
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 along | |
17 | * with this program; see the file COPYING; if not, write to the Free Software | |
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
19 | */ | |
20 | #ifndef __PBR_ZEBRA_H__ | |
21 | #define __PBR_ZEBRA_H__ | |
22 | ||
23 | struct pbr_interface { | |
24 | char mapname[100]; | |
25 | }; | |
26 | ||
d3765386 DS |
27 | extern struct thread_master *master; |
28 | ||
e5c83d9b DS |
29 | extern void pbr_zebra_init(void); |
30 | ||
31 | extern void route_add(struct pbr_nexthop_group_cache *pnhgc, | |
32 | struct nexthop_group nhg, afi_t install_afi); | |
33 | extern void route_delete(struct pbr_nexthop_group_cache *pnhgc, | |
34 | afi_t install_afi); | |
35 | ||
36 | extern void pbr_send_rnh(struct nexthop *nhop, bool reg); | |
37 | ||
38 | extern void pbr_send_pbr_map(struct pbr_map *pbrm, bool install); | |
39 | #endif |