]> git.proxmox.com Git - mirror_frr.git/blob - sharpd/sharp_zebra.h
sharpd: send new OPAQUE messages
[mirror_frr.git] / sharpd / sharp_zebra.h
1 /*
2 * Zebra connect library for SHARP
3 * Copyright (C) Cumulus Networks, Inc.
4 * Donald Sharp
5 *
6 * This file is part of FRR.
7 *
8 * FRR is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * FRR is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; see the file COPYING; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22 #ifndef __SHARP_ZEBRA_H__
23 #define __SHARP_ZEBRA_H__
24
25 extern void sharp_zebra_init(void);
26
27 extern void vrf_label_add(vrf_id_t vrf_id, afi_t afi, mpls_label_t label);
28 extern void route_add(const struct prefix *p, vrf_id_t, uint8_t instance,
29 const struct nexthop_group *nhg,
30 const struct nexthop_group *backup_nhg);
31 extern void route_delete(struct prefix *p, vrf_id_t vrf_id, uint8_t instance);
32 extern void sharp_zebra_nexthop_watch(struct prefix *p, vrf_id_t vrf_id,
33 bool import, bool watch, bool connected);
34
35 extern void sharp_install_routes_helper(struct prefix *p, vrf_id_t vrf_id,
36 uint8_t instance,
37 const struct nexthop_group *nhg,
38 const struct nexthop_group *backup_nhg,
39 uint32_t routes);
40 extern void sharp_remove_routes_helper(struct prefix *p, vrf_id_t vrf_id,
41 uint8_t instance, uint32_t routes);
42
43 int sharp_install_lsps_helper(bool install_p, const struct prefix *p,
44 uint8_t type, int instance, uint32_t in_label,
45 const struct nexthop_group *nhg,
46 const struct nexthop_group *backup_nhg);
47 /* Send OPAQUE messages, using subtype 'type'. */
48 void sharp_opaque_send(uint32_t type, uint32_t count);
49
50
51 #endif