]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/rfapi/rfapi_backend.h
Merge pull request #1921 from donaldsharp/pim_stuff
[mirror_frr.git] / bgpd / rfapi / rfapi_backend.h
1 /*
2 *
3 * Copyright 2009-2016, LabN Consulting, L.L.C.
4 *
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU 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
21 #ifndef _QUAGGA_BGP_RFAPI_BACKEND_H
22 #define _QUAGGA_BGP_RFAPI_BACKEND_H
23
24 #if ENABLE_BGP_VNC
25
26 #include "bgpd/bgp_route.h"
27 #include "bgpd/bgp_nexthop.h"
28
29 extern void rfapi_init(void);
30 extern void vnc_zebra_init(struct thread_master *master);
31 extern void vnc_zebra_destroy(void);
32
33 extern void rfapi_delete(struct bgp *);
34
35 struct rfapi *bgp_rfapi_new(struct bgp *bgp);
36 void bgp_rfapi_destroy(struct bgp *bgp, struct rfapi *h);
37
38 extern void rfapiProcessUpdate(struct peer *peer, void *rfd, struct prefix *p,
39 struct prefix_rd *prd, struct attr *attr,
40 afi_t afi, safi_t safi, uint8_t type,
41 uint8_t sub_type, uint32_t *label);
42
43
44 extern void rfapiProcessWithdraw(struct peer *peer, void *rfd, struct prefix *p,
45 struct prefix_rd *prd, struct attr *attr,
46 afi_t afi, safi_t safi, uint8_t type,
47 int kill);
48
49 extern void rfapiProcessPeerDown(struct peer *peer);
50
51 extern void vnc_zebra_announce(struct prefix *p, struct bgp_info *new_select,
52 struct bgp *bgp);
53
54 extern void vnc_zebra_withdraw(struct prefix *p, struct bgp_info *old_select);
55
56
57 extern void rfapi_vty_out_vncinfo(struct vty *vty, struct prefix *p,
58 struct bgp_info *bi, safi_t safi);
59
60
61 extern void vnc_direct_bgp_vpn_enable(struct bgp *bgp, afi_t afi);
62
63 extern void vnc_direct_bgp_vpn_disable(struct bgp *bgp, afi_t afi);
64
65 extern void vnc_direct_bgp_rh_vpn_enable(struct bgp *bgp, afi_t afi);
66
67 extern void vnc_direct_bgp_rh_vpn_disable(struct bgp *bgp, afi_t afi);
68
69 #endif /* ENABLE_BGP_VNC */
70
71 #endif /* _QUAGGA_BGP_RFAPI_BACKEND_H */