]>
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 | |
b16031a2 | 26 | extern char * |
27 | bgp_evpn_label2str (mpls_label_t *label, char *buf, int len); | |
b18825eb | 28 | extern void |
128ea8ab | 29 | bgp_evpn_encode_prefix (struct stream *s, struct prefix *p, |
30 | struct prefix_rd *prd, mpls_label_t *label, | |
31 | struct attr *attr, int addpath_encode, | |
32 | u_int32_t addpath_tx_id); | |
33 | extern int bgp_nlri_parse_evpn(struct peer *peer, struct attr *attr, | |
34 | struct bgp_nlri *packet, int withdraw); | |
35 | extern int | |
36 | bgp_evpn_import_route (struct bgp *bgp, afi_t afi, safi_t safi, | |
37 | struct prefix *p, struct bgp_info *ri); | |
38 | extern int | |
39 | bgp_evpn_unimport_route (struct bgp *bgp, afi_t afi, safi_t safi, | |
40 | struct prefix *p, struct bgp_info *ri); | |
41 | extern int | |
42 | bgp_evpn_local_macip_del (struct bgp *bgp, vni_t vni, | |
43 | struct ethaddr *mac, struct ipaddr *ip); | |
44 | extern int | |
45 | bgp_evpn_local_macip_add (struct bgp *bgp, vni_t vni, | |
c85c03c7 | 46 | struct ethaddr *mac, struct ipaddr *ip, |
47 | u_char sticky); | |
128ea8ab | 48 | extern int |
49 | bgp_evpn_local_vni_del (struct bgp *bgp, vni_t vni); | |
50 | extern int | |
51 | bgp_evpn_local_vni_add (struct bgp *bgp, vni_t vni, struct in_addr originator_ip); | |
7724c0a1 | 52 | extern void |
53 | bgp_evpn_cleanup_on_disable (struct bgp *bgp); | |
14c1a7bf | 54 | extern void |
55 | bgp_evpn_cleanup (struct bgp *bgp); | |
56 | extern void | |
57 | bgp_evpn_init (struct bgp *bgp); | |
58 | ||
128ea8ab | 59 | #endif /* _QUAGGA_BGP_EVPN_H */ |