-- sourced from http://marc.info/?l=quagga-dev&m=122470854730992&w=2
-- zebra/*_null.c - Removed #pragma weak to be compatibile with gcc 4.0.1 from Apple xcode.
|
|
int if_unset_prefix (struct interface *a, struct connected *b) |
19 | 19 | } |
20 | 20 | |
21 | 21 | int if_prefix_add_ipv6 (struct interface *a, struct connected *b) { return 0; } |
22 | | #pragma weak if_prefix_delete_ipv6 = if_prefix_add_ipv6 |
23 | | |
| 22 | int if_prefix_delete_ipv6 (struct interface *a, struct connected *b) { return 0; } |
24 | 23 | int if_ioctl (u_long a, caddr_t b) { return 0; } |
25 | | |
26 | 24 | int if_set_flags (struct interface *a, uint64_t b) { return 0; } |
27 | | #pragma weak if_unset_flags = if_set_flags |
28 | | |
| 25 | int if_unset_flags (struct interface *a, uint64_t b) { return 0; } |
29 | 26 | void if_get_flags (struct interface *a) { return; } |
30 | | #pragma weak if_get_metric = if_get_flags |
31 | | #pragma weak if_get_mtu = if_get_flags |
| 27 | void if_get_metric(struct interface *a) { return; } |
| 28 | void if_get_mtu(struct interface *a) { return; } |
32 | 29 | |
33 | 30 | #ifdef SOLARIS_IPV6 |
34 | | #pragma weak if_ioctl_ipv6 = if_ioctl |
| 31 | int if_ioctl_ipv6 (u_long a, caddr_t b) { return 0; } |
35 | 32 | struct connected *if_lookup_linklocal(struct interface *a) { return 0; } |
36 | 33 | |
37 | 34 | #define AF_IOCTL(af, request, buffer) \ |
diff --git a/zebra/misc_null.c b/zebra/misc_null.c
index 7359430..8dba0ab 100644
|
|
|
6 | 6 | #include "zebra/interface.h" |
7 | 7 | |
8 | 8 | void ifstat_update_proc (void) { return; } |
9 | | #pragma weak rtadv_config_write = ifstat_update_proc |
10 | | #pragma weak irdp_config_write = ifstat_update_proc |
11 | | #pragma weak ifstat_update_sysctl = ifstat_update_proc |
| 9 | void rtadv_config_write (struct vty *vty, struct interface *ifp) { return; } |
| 10 | void irdp_config_write (struct vty *vty, struct interface *ifp) { return; } |
| 11 | void ifstat_update_sysctl(void) { return; } |
diff --git a/zebra/redistribute_null.c b/zebra/redistribute_null.c
index e57a73b..7072894 100644
|
|
|
6 | 6 | |
7 | 7 | void zebra_redistribute_add (int a, struct zserv *b, int c) |
8 | 8 | { return; } |
9 | | #pragma weak zebra_redistribute_delete = zebra_redistribute_add |
10 | | #pragma weak zebra_redistribute_default_add = zebra_redistribute_add |
11 | | #pragma weak zebra_redistribute_default_delete = zebra_redistribute_add |
| 9 | void zebra_redistribute_delete (int a, struct zserv *b, int c) { return; } |
| 10 | void zebra_redistribute_default_add (int a, struct zserv *b, int c) { return; } |
| 11 | void zebra_redistribute_default_delete (int a, struct zserv *b, int c) { return; } |
12 | 12 | |
13 | 13 | void redistribute_add (struct prefix *a, struct rib *b) |
14 | 14 | { return; } |
15 | | #pragma weak redistribute_delete = redistribute_add |
| 15 | void redistribute_delete (struct prefix *a, struct rib *b) { return; } |
16 | 16 | |
17 | 17 | void zebra_interface_up_update (struct interface *a) |
18 | 18 | { return; } |
19 | | #pragma weak zebra_interface_down_update = zebra_interface_up_update |
20 | | #pragma weak zebra_interface_add_update = zebra_interface_up_update |
21 | | #pragma weak zebra_interface_delete_update = zebra_interface_up_update |
| 19 | void zebra_interface_down_update (struct interface *a) { return; } |
| 20 | void zebra_interface_add_update (struct interface *a) { return; } |
| 21 | void zebra_interface_delete_update (struct interface *a) { return; } |
22 | 22 | |
23 | 23 | void zebra_interface_address_add_update (struct interface *a, |
24 | 24 | struct connected *b) |
25 | 25 | { return; } |
26 | | #pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update |
| 26 | void zebra_interface_address_delete_update(struct interface *a, struct connected *b) { return; } |