]> git.proxmox.com Git - mirror_frr.git/blame - pbrd/pbr_zebra.h
Merge pull request #2946 from mjstapp/dplane_2
[mirror_frr.git] / pbrd / pbr_zebra.h
CommitLineData
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
23struct pbr_interface {
24 char mapname[100];
25};
26
d3765386
DS
27extern struct thread_master *master;
28
e5c83d9b
DS
29extern void pbr_zebra_init(void);
30
31extern void route_add(struct pbr_nexthop_group_cache *pnhgc,
32 struct nexthop_group nhg, afi_t install_afi);
33extern void route_delete(struct pbr_nexthop_group_cache *pnhgc,
34 afi_t install_afi);
35
36extern void pbr_send_rnh(struct nexthop *nhop, bool reg);
37
b13e5ad6
DS
38extern void pbr_send_pbr_map(struct pbr_map_sequence *pbrms,
39 struct pbr_map_interface *pmi, bool install);
40
41extern struct pbr_interface *pbr_if_new(struct interface *ifp);
e5c83d9b 42#endif