]> git.proxmox.com Git - mirror_frr.git/blame - bgpd/bgp_evpn.h
bgpd: Debug logging updates for EVPN
[mirror_frr.git] / bgpd / bgp_evpn.h
CommitLineData
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 26extern char *
27bgp_evpn_label2str (mpls_label_t *label, char *buf, int len);
b18825eb 28extern void
128ea8ab 29bgp_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);
33extern int bgp_nlri_parse_evpn(struct peer *peer, struct attr *attr,
34 struct bgp_nlri *packet, int withdraw);
35extern int
36bgp_evpn_import_route (struct bgp *bgp, afi_t afi, safi_t safi,
37 struct prefix *p, struct bgp_info *ri);
38extern int
39bgp_evpn_unimport_route (struct bgp *bgp, afi_t afi, safi_t safi,
40 struct prefix *p, struct bgp_info *ri);
41extern int
42bgp_evpn_local_macip_del (struct bgp *bgp, vni_t vni,
43 struct ethaddr *mac, struct ipaddr *ip);
44extern int
45bgp_evpn_local_macip_add (struct bgp *bgp, vni_t vni,
c85c03c7 46 struct ethaddr *mac, struct ipaddr *ip,
47 u_char sticky);
128ea8ab 48extern int
49bgp_evpn_local_vni_del (struct bgp *bgp, vni_t vni);
50extern int
51bgp_evpn_local_vni_add (struct bgp *bgp, vni_t vni, struct in_addr originator_ip);
7724c0a1 52extern void
53bgp_evpn_cleanup_on_disable (struct bgp *bgp);
14c1a7bf 54extern void
55bgp_evpn_cleanup (struct bgp *bgp);
56extern void
57bgp_evpn_init (struct bgp *bgp);
58
128ea8ab 59#endif /* _QUAGGA_BGP_EVPN_H */