]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_attr_evpn.h
1 /* E-VPN attribute handling structure file
2 Copyright (C) 2016 6WIND
4 This file is part of Free Range Routing.
6 Free Range Routing 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
11 Free Range Routing 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.
16 You should have received a copy of the GNU General Public License
17 along with Free Range Routing; see the file COPYING. If not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 #ifndef _QUAGGA_BGP_ATTR_EVPN_H
22 #define _QUAGGA_BGP_ATTR_EVPN_H
24 /* value of first byte of ESI */
25 #define ESI_TYPE_ARBITRARY 0 /* */
26 #define ESI_TYPE_LACP 1 /* <> */
27 #define ESI_TYPE_BRIDGE 2 /* <Root bridge Mac-6B>:<Root Br Priority-2B>:00 */
28 #define ESI_TYPE_MAC 3 /* <Syst Mac Add-6B>:<Local Discriminator Value-3B> */
29 #define ESI_TYPE_ROUTER 4 /* <RouterId-4B>:<Local Discriminator Value-4B> */
30 #define ESI_TYPE_AS 5 /* <AS-4B>:<Local Discriminator Value-4B> */
31 #define MAX_ESI {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}
34 #define MAX_ET 0xffffffff
51 struct eth_segment_id eth_s_id
;
55 extern int str2esi (const char *str
, struct eth_segment_id
*id
);
56 extern int str2mac (const char *str
, char *mac
);
57 extern char *esi2str (struct eth_segment_id
*id
);
58 extern char *mac2str (char *mac
);
59 extern char *ecom_mac2str(char *ecom_mac
);
61 #endif /* _QUAGGA_BGP_ATTR_EVPN_H */