]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_vxlan.h
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.
6 * This file is part of FRR.
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
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.
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
24 #ifndef _ZEBRA_VXLAN_H
25 #define _ZEBRA_VXLAN_H
34 #include "zebra/interface.h"
35 #include "zebra/zebra_vrf.h"
37 /* Is EVPN enabled? */
38 #define EVPN_ENABLED(zvrf) (zvrf)->advertise_all_vni
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
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
*);
59 #endif /* _ZEBRA_VXLAN_H */