Ticket #20424: quagga-patch1.diff

File quagga-patch1.diff, 4.2 KB (added by mike-savory, 15 years ago)
  • zebra/ioctl_null.c

    -- 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) 
    1919}
    2020
    2121int if_prefix_add_ipv6 (struct interface *a, struct connected *b) { return 0; }
    22 #pragma weak if_prefix_delete_ipv6 = if_prefix_add_ipv6
    23 
     22int if_prefix_delete_ipv6 (struct interface *a, struct connected *b) { return 0; }
    2423int if_ioctl (u_long a, caddr_t b) { return 0; }
    25 
    2624int if_set_flags (struct interface *a, uint64_t b) { return 0; }
    27 #pragma weak if_unset_flags = if_set_flags
    28 
     25int if_unset_flags (struct interface *a, uint64_t b) { return 0; }
    2926void 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
     27void if_get_metric(struct interface *a) { return; }
     28void if_get_mtu(struct interface *a) { return; }
    3229
    3330#ifdef SOLARIS_IPV6
    34 #pragma weak if_ioctl_ipv6 = if_ioctl
     31int if_ioctl_ipv6 (u_long a, caddr_t b) { return 0; }
    3532struct connected *if_lookup_linklocal(struct interface *a) { return 0; }
    3633
    3734#define AF_IOCTL(af, request, buffer) \
  • zebra/kernel_null.c

     
    99#include "zebra/connected.h"
    1010
    1111int kernel_add_ipv4 (struct prefix *a, struct rib *b) { return 0; }
    12 #pragma weak kernel_delete_ipv4 = kernel_add_ipv4
     12int kernel_delete_ipv4  (struct prefix *a, struct rib *b) { return 0; }
     13
    1314int kernel_add_ipv6 (struct prefix *a, struct rib *b) { return 0; }
    14 #pragma weak kernel_delete_ipv6 = kernel_add_ipv6
     15int kernel_delete_ipv6 (struct prefix *a, struct rib *b) { return 0; }
     16
    1517int kernel_delete_ipv6_old (struct prefix_ipv6 *dest, struct in6_addr *gate,
    1618                            unsigned int index, int flags, int table)
    1719{ return 0; }
    int kernel_address_delete_ipv4 (struct interface *a, struct connected *b) 
    3739}
    3840
    3941void kernel_init (void) { return; }
    40 #pragma weak route_read = kernel_init
     42void route_read  (void) { return; }
  • zebra/misc_null.c

    diff --git a/zebra/misc_null.c b/zebra/misc_null.c
    index 7359430..8dba0ab 100644
     
    66#include "zebra/interface.h"
    77
    88void 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
     9void rtadv_config_write (struct vty *vty, struct interface *ifp) { return; }
     10void irdp_config_write  (struct vty *vty, struct interface *ifp) { return; }
     11void ifstat_update_sysctl(void) { return; }
  • zebra/redistribute_null.c

    diff --git a/zebra/redistribute_null.c b/zebra/redistribute_null.c
    index e57a73b..7072894 100644
     
    66
    77void zebra_redistribute_add (int a, struct zserv *b, int c)
    88{ 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
     9void zebra_redistribute_delete  (int a, struct zserv *b, int c) { return; }
     10void zebra_redistribute_default_add (int a, struct zserv *b, int c) { return; }
     11void zebra_redistribute_default_delete (int a, struct zserv *b, int c) { return; }
    1212
    1313void redistribute_add (struct prefix *a, struct rib *b)
    1414{ return; }
    15 #pragma weak redistribute_delete = redistribute_add
     15void redistribute_delete (struct prefix *a, struct rib *b) { return; }
    1616
    1717void zebra_interface_up_update (struct interface *a)
    1818{ 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
     19void zebra_interface_down_update  (struct interface *a) { return; }
     20void zebra_interface_add_update (struct interface *a) { return; }
     21void zebra_interface_delete_update (struct interface *a) { return; }
    2222
    2323void zebra_interface_address_add_update (struct interface *a,
    2424                                                struct connected *b)
    2525{ return; }
    26 #pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update
     26void zebra_interface_address_delete_update(struct interface *a, struct connected *b) { return; }