]>
Commit | Line | Data |
---|---|---|
7ef5a232 | 1 | /* E-VPN header for packet handling |
896014f4 DL |
2 | * Copyright (C) 2016 6WIND |
3 | * | |
4 | * This file is part of FRRouting. | |
5 | * | |
6 | * FRRouting is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License as published by the | |
8 | * Free Software Foundation; either version 2, or (at your option) any | |
9 | * later version. | |
10 | * | |
11 | * FRRouting is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | * 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 | */ | |
7ef5a232 PG |
20 | |
21 | #ifndef _QUAGGA_BGP_EVPN_H | |
22 | #define _QUAGGA_BGP_EVPN_H | |
23 | ||
128ea8ab | 24 | #include "vxlan.h" |
7ef5a232 | 25 | |
520d5d76 | 26 | #define EVPN_ROUTE_STRLEN 200 /* Must be >> MAC + IPv6 strings. */ |
27 | ||
d62a17ae | 28 | extern void bgp_evpn_handle_router_id_update(struct bgp *bgp, int withdraw); |
29 | extern char *bgp_evpn_label2str(mpls_label_t *label, char *buf, int len); | |
30 | extern char *bgp_evpn_route2str(struct prefix_evpn *p, char *buf, int len); | |
31 | extern void bgp_evpn_encode_prefix(struct stream *s, struct prefix *p, | |
32 | struct prefix_rd *prd, mpls_label_t *label, | |
33 | struct attr *attr, int addpath_encode, | |
34 | u_int32_t addpath_tx_id); | |
128ea8ab | 35 | extern int bgp_nlri_parse_evpn(struct peer *peer, struct attr *attr, |
36 | struct bgp_nlri *packet, int withdraw); | |
d62a17ae | 37 | extern int bgp_evpn_import_route(struct bgp *bgp, afi_t afi, safi_t safi, |
38 | struct prefix *p, struct bgp_info *ri); | |
39 | extern int bgp_evpn_unimport_route(struct bgp *bgp, afi_t afi, safi_t safi, | |
40 | struct prefix *p, struct bgp_info *ri); | |
41 | extern int bgp_evpn_local_macip_del(struct bgp *bgp, vni_t vni, | |
42 | struct ethaddr *mac, struct ipaddr *ip); | |
43 | extern int bgp_evpn_local_macip_add(struct bgp *bgp, vni_t vni, | |
44 | struct ethaddr *mac, struct ipaddr *ip, | |
45 | u_char sticky); | |
46 | extern int bgp_evpn_local_vni_del(struct bgp *bgp, vni_t vni); | |
47 | extern int bgp_evpn_local_vni_add(struct bgp *bgp, vni_t vni, | |
48 | struct in_addr originator_ip); | |
49 | extern void bgp_evpn_cleanup_on_disable(struct bgp *bgp); | |
50 | extern void bgp_evpn_cleanup(struct bgp *bgp); | |
51 | extern void bgp_evpn_init(struct bgp *bgp); | |
14c1a7bf | 52 | |
128ea8ab | 53 | #endif /* _QUAGGA_BGP_EVPN_H */ |