]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/rfapi/rfapi_backend.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright 2009-2016, LabN Consulting, L.L.C.
8 #ifndef _QUAGGA_BGP_RFAPI_BACKEND_H
9 #define _QUAGGA_BGP_RFAPI_BACKEND_H
13 #include "bgpd/bgp_route.h"
14 #include "bgpd/bgp_nexthop.h"
16 extern void rfapi_init(void);
17 extern void vnc_zebra_init(struct thread_master
*master
);
18 extern void vnc_zebra_destroy(void);
20 extern void rfapi_delete(struct bgp
*);
22 struct rfapi
*bgp_rfapi_new(struct bgp
*bgp
);
23 void bgp_rfapi_destroy(struct bgp
*bgp
, struct rfapi
*h
);
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
);
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
);
36 extern void rfapiProcessPeerDown(struct peer
*peer
);
38 extern void vnc_zebra_announce(struct prefix
*p
,
39 struct bgp_path_info
*new_select
,
42 extern void vnc_zebra_withdraw(struct prefix
*p
,
43 struct bgp_path_info
*old_select
);
46 extern void rfapi_vty_out_vncinfo(struct vty
*vty
, const struct prefix
*p
,
47 struct bgp_path_info
*bpi
, safi_t safi
);
50 extern void vnc_direct_bgp_vpn_enable(struct bgp
*bgp
, afi_t afi
);
52 extern void vnc_direct_bgp_vpn_disable(struct bgp
*bgp
, afi_t afi
);
54 extern void vnc_direct_bgp_rh_vpn_enable(struct bgp
*bgp
, afi_t afi
);
56 extern void vnc_direct_bgp_rh_vpn_disable(struct bgp
*bgp
, afi_t afi
);
58 #endif /* ENABLE_BGP_VNC */
60 #endif /* _QUAGGA_BGP_RFAPI_BACKEND_H */