Paul Jakma | 010ebbb | 2014-09-16 11:53:49 +0100 | [diff] [blame] | 1 | /* |
| 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 Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 22 | #include <zebra.h> |
| 23 | #include "zebra/rib.h" |
| 24 | #include "zebra/zserv.h" |
| 25 | |
| 26 | #include "zebra/redistribute.h" |
| 27 | |
| 28 | void zebra_redistribute_add (int a, struct zserv *b, int c) |
| 29 | { return; } |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 30 | #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 31 | #pragma weak zebra_redistribute_delete = zebra_redistribute_add |
| 32 | #pragma weak zebra_redistribute_default_add = zebra_redistribute_add |
| 33 | #pragma weak zebra_redistribute_default_delete = zebra_redistribute_add |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 34 | #else |
| 35 | void zebra_redistribute_delete (int a, struct zserv *b, int c) |
| 36 | { return; } |
| 37 | void zebra_redistribute_default_add (int a, struct zserv *b, int c) |
| 38 | { return; } |
| 39 | void zebra_redistribute_default_delete (int a, struct zserv *b, int c) |
| 40 | { return; } |
| 41 | #endif |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 42 | |
| 43 | void redistribute_add (struct prefix *a, struct rib *b) |
| 44 | { return; } |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 45 | #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 46 | #pragma weak redistribute_delete = redistribute_add |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 47 | #else |
| 48 | void redistribute_delete (struct prefix *a, struct rib *b) |
| 49 | { return; } |
| 50 | #endif |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 51 | |
| 52 | void zebra_interface_up_update (struct interface *a) |
| 53 | { return; } |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 54 | #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 55 | #pragma weak zebra_interface_down_update = zebra_interface_up_update |
| 56 | #pragma weak zebra_interface_add_update = zebra_interface_up_update |
| 57 | #pragma weak zebra_interface_delete_update = zebra_interface_up_update |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 58 | #else |
| 59 | void zebra_interface_down_update (struct interface *a) |
| 60 | { return; } |
| 61 | void zebra_interface_add_update (struct interface *a) |
| 62 | { return; } |
| 63 | void zebra_interface_delete_update (struct interface *a) |
| 64 | { return; } |
| 65 | #endif |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 66 | |
| 67 | void zebra_interface_address_add_update (struct interface *a, |
| 68 | struct connected *b) |
| 69 | { return; } |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 70 | #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 71 | #pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 72 | #else |
| 73 | void zebra_interface_address_delete_update (struct interface *a, |
| 74 | struct connected *b) |
| 75 | { return; } |
| 76 | #endif |