]>
Commit | Line | Data |
---|---|---|
13d60d35 | 1 | /* |
2 | * Zebra VxLAN (EVPN) Data structures and definitions | |
3 | * These are public definitions referenced by other files. | |
4 | * Copyright (C) 2016, 2017 Cumulus Networks, Inc. | |
5 | * | |
6 | * This file is part of FRR. | |
7 | * | |
8 | * FRR is free software; you can redistribute it and/or modify it | |
9 | * under the terms of the GNU General Public License as published by the | |
10 | * Free Software Foundation; either version 2, or (at your option) any | |
11 | * later version. | |
12 | * | |
13 | * FRR is distributed in the hope that it will be useful, but | |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | * General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with FRR; see the file COPYING. If not, write to the Free | |
20 | * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
21 | * 02111-1307, USA. | |
22 | */ | |
23 | ||
24 | #ifndef _ZEBRA_VXLAN_H | |
25 | #define _ZEBRA_VXLAN_H | |
26 | ||
27 | #include <zebra.h> | |
28 | ||
29 | #include "linklist.h" | |
30 | #include "if.h" | |
31 | #include "vlan.h" | |
32 | #include "vxlan.h" | |
33 | ||
34 | #include "zebra/interface.h" | |
35 | #include "zebra/zebra_vrf.h" | |
36 | ||
37 | /* Is EVPN enabled? */ | |
38 | #define EVPN_ENABLED(zvrf) (zvrf)->advertise_all_vni | |
39 | ||
40 | /* VxLAN interface change flags of interest. */ | |
41 | #define ZEBRA_VXLIF_LOCAL_IP_CHANGE 0x1 | |
42 | #define ZEBRA_VXLIF_MASTER_CHANGE 0x2 | |
43 | #define ZEBRA_VXLIF_VLAN_CHANGE 0x4 | |
44 | ||
45 | extern int zebra_vxlan_if_up (struct interface *ifp); | |
46 | extern int zebra_vxlan_if_down (struct interface *ifp); | |
47 | extern int zebra_vxlan_if_add (struct interface *ifp); | |
48 | extern int zebra_vxlan_if_update (struct interface *ifp, u_int16_t chgflags); | |
49 | extern int zebra_vxlan_if_del (struct interface *ifp); | |
50 | extern int zebra_vxlan_remote_vtep_add (struct zserv *client, int sock, | |
51 | u_short length, struct zebra_vrf *zvrf); | |
52 | extern int zebra_vxlan_remote_vtep_del (struct zserv *client, int sock, | |
53 | u_short length, struct zebra_vrf *zvrf); | |
54 | extern int zebra_vxlan_advertise_all_vni (struct zserv *client, int sock, | |
55 | u_short length, struct zebra_vrf *zvrf); | |
56 | extern void zebra_vxlan_init_tables (struct zebra_vrf *zvrf); | |
57 | extern void zebra_vxlan_close_tables (struct zebra_vrf *); | |
58 | ||
59 | #endif /* _ZEBRA_VXLAN_H */ |