]>
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 | ||
4d0e6ece PG |
24 | extern int bgp_nlri_parse_evpn(struct peer *peer, struct attr *attr, |
25 | struct bgp_nlri *packet, int withdraw); | |
7ef5a232 | 26 | |
b18825eb | 27 | extern void |
4d0e6ece PG |
28 | bgp_packet_mpattr_route_type_5(struct stream *s, |
29 | struct prefix *p, struct prefix_rd *prd, | |
9bedbb1e | 30 | mpls_label_t *label, struct attr *attr); |
14c1a7bf | 31 | |
7724c0a1 | 32 | extern void |
33 | bgp_evpn_cleanup_on_disable (struct bgp *bgp); | |
14c1a7bf | 34 | extern void |
35 | bgp_evpn_cleanup (struct bgp *bgp); | |
36 | extern void | |
37 | bgp_evpn_init (struct bgp *bgp); | |
38 | ||
7ef5a232 PG |
39 | /* EVPN route types as per RFC7432 and |
40 | * as per draft-ietf-bess-evpn-prefix-advertisement-02 | |
41 | */ | |
42 | #define EVPN_ETHERNET_AUTO_DISCOVERY 1 | |
43 | #define EVPN_MACIP_ADVERTISEMENT 2 | |
44 | #define EVPN_INCLUSIVE_MULTICAST_ETHERNET_TAG 3 | |
45 | #define EVPN_ETHERNET_SEGMENT 4 | |
46 | #define EVPN_IP_PREFIX 5 | |
47 | ||
4d0e6ece | 48 | #endif /* _QUAGGA_BGP_EVPN_H */ |