Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 1 | #include <zebra.h> |
| 2 | #include "zebra/rib.h" |
| 3 | #include "zebra/zserv.h" |
| 4 | |
| 5 | #include "zebra/redistribute.h" |
| 6 | |
| 7 | void zebra_redistribute_add (int a, struct zserv *b, int c) |
| 8 | { return; } |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 9 | #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 10 | #pragma weak zebra_redistribute_delete = zebra_redistribute_add |
| 11 | #pragma weak zebra_redistribute_default_add = zebra_redistribute_add |
| 12 | #pragma weak zebra_redistribute_default_delete = zebra_redistribute_add |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 13 | #else |
| 14 | void zebra_redistribute_delete (int a, struct zserv *b, int c) |
| 15 | { return; } |
| 16 | void zebra_redistribute_default_add (int a, struct zserv *b, int c) |
| 17 | { return; } |
| 18 | void zebra_redistribute_default_delete (int a, struct zserv *b, int c) |
| 19 | { return; } |
| 20 | #endif |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 21 | |
| 22 | void redistribute_add (struct prefix *a, struct rib *b) |
| 23 | { return; } |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 24 | #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 25 | #pragma weak redistribute_delete = redistribute_add |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 26 | #else |
| 27 | void redistribute_delete (struct prefix *a, struct rib *b) |
| 28 | { return; } |
| 29 | #endif |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 30 | |
| 31 | void zebra_interface_up_update (struct interface *a) |
| 32 | { return; } |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 33 | #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 34 | #pragma weak zebra_interface_down_update = zebra_interface_up_update |
| 35 | #pragma weak zebra_interface_add_update = zebra_interface_up_update |
| 36 | #pragma weak zebra_interface_delete_update = zebra_interface_up_update |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 37 | #else |
| 38 | void zebra_interface_down_update (struct interface *a) |
| 39 | { return; } |
| 40 | void zebra_interface_add_update (struct interface *a) |
| 41 | { return; } |
| 42 | void zebra_interface_delete_update (struct interface *a) |
| 43 | { return; } |
| 44 | #endif |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 45 | |
| 46 | void zebra_interface_address_add_update (struct interface *a, |
| 47 | struct connected *b) |
| 48 | { return; } |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 49 | #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA |
Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 50 | #pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update |
Doug VanLeuven | 327c4cd | 2012-12-14 14:58:30 +0200 | [diff] [blame] | 51 | #else |
| 52 | void zebra_interface_address_delete_update (struct interface *a, |
| 53 | struct connected *b) |
| 54 | { return; } |
| 55 | #endif |