]> git.proxmox.com Git - mirror_frr.git/blame - bgpd/rfapi/rfapi_ap.h
bgpd: Adding BGP GR Global & Per Neighbour FSM changes
[mirror_frr.git] / bgpd / rfapi / rfapi_ap.h
CommitLineData
d62a17ae 1/*
65efcfce
LB
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 *
896014f4
DL
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
65efcfce
LB
19 */
20#ifndef _QUAGGA_BGP_RFAPI_AP_H
21#define _QUAGGA_BGP_RFAPI_AP_H
22
23/* TBD delete some of these #includes */
24
25#include <errno.h>
26
f8b6f499
LB
27#include "lib/zebra.h"
28#include "lib/prefix.h"
29#include "lib/table.h"
30#include "lib/vty.h"
31#include "lib/memory.h"
32#include "lib/routemap.h"
33#include "lib/log.h"
34#include "lib/linklist.h"
35#include "lib/command.h"
36#include "lib/stream.h"
65efcfce 37
f8b6f499 38#include "bgpd/bgpd.h"
65efcfce
LB
39
40#include "bgp_rfapi_cfg.h"
41#include "rfapi.h"
42#include "rfapi_backend.h"
43
f8b6f499
LB
44#include "bgpd/bgp_route.h"
45#include "bgpd/bgp_aspath.h"
46#include "bgpd/bgp_advertise.h"
65efcfce
LB
47
48#include "rfapi_import.h"
49#include "rfapi_private.h"
50#include "rfapi_monitor.h"
51#include "rfapi_vty.h"
52#include "vnc_export_bgp.h"
53#include "vnc_export_bgp_p.h"
54#include "vnc_zebra.h"
55#include "vnc_import_bgp.h"
56#include "rfapi_rib.h"
57
58
d62a17ae 59extern void rfapiApInit(struct rfapi_advertised_prefixes *ap);
65efcfce 60
d62a17ae 61extern void rfapiApRelease(struct rfapi_advertised_prefixes *ap);
65efcfce 62
d62a17ae 63extern int rfapiApCount(struct rfapi_descriptor *rfd);
65efcfce 64
65efcfce 65
d62a17ae 66extern int rfapiApCountAll(struct bgp *bgp);
65efcfce 67
d62a17ae 68extern void rfapiApReadvertiseAll(struct bgp *bgp,
69 struct rfapi_descriptor *rfd);
65efcfce 70
d62a17ae 71extern void rfapiApWithdrawAll(struct bgp *bgp, struct rfapi_descriptor *rfd);
65efcfce
LB
72
73extern int
d62a17ae 74rfapiApAdd(struct bgp *bgp, struct rfapi_descriptor *rfd, struct prefix *pfx_ip,
75 struct prefix *pfx_eth, struct prefix_rd *prd, uint32_t lifetime,
76 uint8_t cost,
77 struct rfapi_l2address_option *l2o); /* other options TBD */
78
79extern int rfapiApDelete(struct bgp *bgp, struct rfapi_descriptor *rfd,
80 struct prefix *pfx_ip, struct prefix *pfx_eth,
81 struct prefix_rd *prd,
82 int *advertise_tunnel); /* out */
65efcfce
LB
83
84
85#endif /* _QUAGGA_BGP_RFAPI_AP_H */