blob: 5584d12ca8102372176e010e84f0a0a50fdff472 [file] [log] [blame]
Paul Jakma010ebbb2014-09-16 11:53:49 +01001/*
2 * Copyright (C) 2006 Sun Microsystems, Inc.
3 *
4 * This file is part of Quagga.
5 *
6 * Quagga 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 * Quagga 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
17 * along with Quagga; see the file COPYING. If not, write to the Free
18 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 * 02111-1307, USA.
20 */
21
Paul Jakma457eb9a2006-07-27 19:59:58 +000022#include <zebra.h>
23#include "zebra/rib.h"
24#include "zebra/zserv.h"
25
26#include "zebra/redistribute.h"
27
Feng Luc99f3482014-10-16 09:52:36 +080028void zebra_redistribute_add (int a, struct zserv *b, int c,
29 vrf_id_t vrf_id)
Paul Jakma457eb9a2006-07-27 19:59:58 +000030{ return; }
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020031#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
Paul Jakma457eb9a2006-07-27 19:59:58 +000032#pragma weak zebra_redistribute_delete = zebra_redistribute_add
33#pragma weak zebra_redistribute_default_add = zebra_redistribute_add
34#pragma weak zebra_redistribute_default_delete = zebra_redistribute_add
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020035#else
Feng Luc99f3482014-10-16 09:52:36 +080036void zebra_redistribute_delete (int a, struct zserv *b, int c,
37 vrf_id_t vrf_id)
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020038{ return; }
Feng Luc99f3482014-10-16 09:52:36 +080039void zebra_redistribute_default_add (int a, struct zserv *b, int c,
40 vrf_id_t vrf_id)
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020041{ return; }
Feng Luc99f3482014-10-16 09:52:36 +080042void zebra_redistribute_default_delete (int a, struct zserv *b, int c,
43 vrf_id_t vrf_id)
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020044{ return; }
45#endif
Paul Jakma457eb9a2006-07-27 19:59:58 +000046
47void redistribute_add (struct prefix *a, struct rib *b)
48{ return; }
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020049#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
Paul Jakma457eb9a2006-07-27 19:59:58 +000050#pragma weak redistribute_delete = redistribute_add
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020051#else
52void redistribute_delete (struct prefix *a, struct rib *b)
53{ return; }
54#endif
Paul Jakma457eb9a2006-07-27 19:59:58 +000055
56void zebra_interface_up_update (struct interface *a)
57{ return; }
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020058#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
Paul Jakma457eb9a2006-07-27 19:59:58 +000059#pragma weak zebra_interface_down_update = zebra_interface_up_update
60#pragma weak zebra_interface_add_update = zebra_interface_up_update
61#pragma weak zebra_interface_delete_update = zebra_interface_up_update
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020062#else
63void zebra_interface_down_update (struct interface *a)
64{ return; }
65void zebra_interface_add_update (struct interface *a)
66{ return; }
67void zebra_interface_delete_update (struct interface *a)
68{ return; }
69#endif
Paul Jakma457eb9a2006-07-27 19:59:58 +000070
71void zebra_interface_address_add_update (struct interface *a,
72 struct connected *b)
73{ return; }
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020074#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
Paul Jakma457eb9a2006-07-27 19:59:58 +000075#pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020076#else
77void zebra_interface_address_delete_update (struct interface *a,
78 struct connected *b)
79{ return; }
80#endif
Olivier Dugeon15773a82016-04-19 18:29:55 +020081
82/* Interface parameters update */
83void zebra_interface_parameters_update (struct interface *ifp)
84{ return; };