]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/rfapi/rfapi_backend.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / bgpd / rfapi / rfapi_backend.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 *
4 * Copyright 2009-2016, LabN Consulting, L.L.C.
5 *
6 */
7
8 #ifndef _QUAGGA_BGP_RFAPI_BACKEND_H
9 #define _QUAGGA_BGP_RFAPI_BACKEND_H
10
11 #ifdef ENABLE_BGP_VNC
12
13 #include "bgpd/bgp_route.h"
14 #include "bgpd/bgp_nexthop.h"
15
16 extern void rfapi_init(void);
17 extern void vnc_zebra_init(struct thread_master *master);
18 extern void vnc_zebra_destroy(void);
19
20 extern void rfapi_delete(struct bgp *);
21
22 struct rfapi *bgp_rfapi_new(struct bgp *bgp);
23 void bgp_rfapi_destroy(struct bgp *bgp, struct rfapi *h);
24
25 extern void rfapiProcessUpdate(struct peer *peer, void *rfd,
26 const struct prefix *p, struct prefix_rd *prd,
27 struct attr *attr, afi_t afi, safi_t safi,
28 uint8_t type, uint8_t sub_type, uint32_t *label);
29
30
31 extern void rfapiProcessWithdraw(struct peer *peer, void *rfd,
32 const struct prefix *p, struct prefix_rd *prd,
33 struct attr *attr, afi_t afi, safi_t safi,
34 uint8_t type, int kill);
35
36 extern void rfapiProcessPeerDown(struct peer *peer);
37
38 extern void vnc_zebra_announce(struct prefix *p,
39 struct bgp_path_info *new_select,
40 struct bgp *bgp);
41
42 extern void vnc_zebra_withdraw(struct prefix *p,
43 struct bgp_path_info *old_select);
44
45
46 extern void rfapi_vty_out_vncinfo(struct vty *vty, const struct prefix *p,
47 struct bgp_path_info *bpi, safi_t safi);
48
49
50 extern void vnc_direct_bgp_vpn_enable(struct bgp *bgp, afi_t afi);
51
52 extern void vnc_direct_bgp_vpn_disable(struct bgp *bgp, afi_t afi);
53
54 extern void vnc_direct_bgp_rh_vpn_enable(struct bgp *bgp, afi_t afi);
55
56 extern void vnc_direct_bgp_rh_vpn_disable(struct bgp *bgp, afi_t afi);
57
58 #endif /* ENABLE_BGP_VNC */
59
60 #endif /* _QUAGGA_BGP_RFAPI_BACKEND_H */