]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_vxlan_null.c
3 * Copyright (C) 2016, 2017 Cumulus Networks, Inc.
5 * This file is part of FRR.
7 * FRR is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
12 * FRR is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with FRR; see the file COPYING. If not, write to the Free
19 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 #include "zebra/debug.h"
27 #include "zebra/zserv.h"
28 #include "zebra/rib.h"
29 #include "zebra/zebra_vrf.h"
30 #include "zebra/zebra_l2.h"
31 #include "zebra/zebra_vxlan.h"
33 int zebra_vxlan_svi_up (struct interface
*ifp
, struct interface
*link_if
)
38 int zebra_vxlan_svi_down (struct interface
*ifp
, struct interface
*link_if
)
43 int zebra_vxlan_remote_macip_add (struct zserv
*client
, int sock
,
44 u_short length
, struct zebra_vrf
*zvrf
)
49 int zebra_vxlan_remote_macip_del (struct zserv
*client
, int sock
,
50 u_short length
, struct zebra_vrf
*zvrf
)
55 int zebra_vxlan_local_mac_add_update (struct interface
*ifp
,
56 struct interface
*br_if
,
57 struct ethaddr
*mac
, vlanid_t vid
)
62 int zebra_vxlan_local_mac_del (struct interface
*ifp
,
63 struct interface
*br_if
,
64 struct ethaddr
*mac
, vlanid_t vid
)
69 int zebra_vxlan_check_readd_remote_mac (struct interface
*ifp
,
70 struct interface
*br_if
,
71 struct ethaddr
*mac
, vlanid_t vid
)
76 int zebra_vxlan_check_del_local_mac (struct interface
*ifp
,
77 struct interface
*br_if
,
78 struct ethaddr
*mac
, vlanid_t vid
)
84 zebra_vxlan_if_up (struct interface
*ifp
)
90 zebra_vxlan_if_down (struct interface
*ifp
)
96 zebra_vxlan_if_add (struct interface
*ifp
)
102 zebra_vxlan_if_update (struct interface
*ifp
, u_int16_t chgflags
)
108 zebra_vxlan_if_del (struct interface
*ifp
)
113 int zebra_vxlan_remote_vtep_add (struct zserv
*client
, int sock
,
114 u_short length
, struct zebra_vrf
*zvrf
)
119 int zebra_vxlan_remote_vtep_del (struct zserv
*client
, int sock
,
120 u_short length
, struct zebra_vrf
*zvrf
)
125 int zebra_vxlan_advertise_all_vni (struct zserv
*client
, int sock
,
126 u_short length
, struct zebra_vrf
*zvrf
)
132 zebra_vxlan_init_tables (struct zebra_vrf
*zvrf
)
137 zebra_vxlan_close_tables (struct zebra_vrf
*zvrf
)