]>
git.proxmox.com Git - mirror_frr.git/blob - pbrd/pbr_zebra.h
2 * Zebra connect library for PBR
3 * Copyright (C) 2018 Cumulus Networks, Inc.
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
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.
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
20 #ifndef __PBR_ZEBRA_H__
21 #define __PBR_ZEBRA_H__
23 struct pbr_interface
{
27 extern struct thread_master
*master
;
29 extern void pbr_zebra_init(void);
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
,
36 extern void pbr_send_rnh(struct nexthop
*nhop
, bool reg
);
38 extern bool pbr_send_pbr_map(struct pbr_map_sequence
*pbrms
,
39 struct pbr_map_interface
*pmi
, bool install
,
42 extern struct pbr_interface
*pbr_if_new(struct interface
*ifp
);
44 extern int pbr_ifp_create(struct interface
*ifp
);
45 extern int pbr_ifp_up(struct interface
*ifp
);
46 extern int pbr_ifp_down(struct interface
*ifp
);
47 extern int pbr_ifp_destroy(struct interface
*ifp
);
49 /* Free the ifp->info pointer */
50 extern void pbr_if_del(struct interface
*ifp
);