redistribute_null.c 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. #include <zebra.h>
  22. #include "zebra/rib.h"
  23. #include "zebra/zserv.h"
  24. #include "zebra/redistribute.h"
  25. void zebra_redistribute_add (int a, struct zserv *b, int c,
  26. vrf_id_t vrf_id)
  27. { return; }
  28. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  29. #pragma weak zebra_redistribute_delete = zebra_redistribute_add
  30. #pragma weak zebra_redistribute_default_add = zebra_redistribute_add
  31. #pragma weak zebra_redistribute_default_delete = zebra_redistribute_add
  32. #else
  33. void zebra_redistribute_delete (int a, struct zserv *b, int c,
  34. vrf_id_t vrf_id)
  35. { return; }
  36. void zebra_redistribute_default_add (int a, struct zserv *b, int c,
  37. vrf_id_t vrf_id)
  38. { return; }
  39. void zebra_redistribute_default_delete (int a, struct zserv *b, int c,
  40. vrf_id_t vrf_id)
  41. { return; }
  42. #endif
  43. void redistribute_add (struct prefix *a, struct rib *b, struct rib *c)
  44. { return; }
  45. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  46. #pragma weak redistribute_delete = redistribute_add
  47. #else
  48. void redistribute_delete (struct prefix *a, struct rib *b)
  49. { return; }
  50. #endif
  51. void zebra_interface_up_update (struct interface *a)
  52. { return; }
  53. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  54. #pragma weak zebra_interface_down_update = zebra_interface_up_update
  55. #pragma weak zebra_interface_add_update = zebra_interface_up_update
  56. #pragma weak zebra_interface_delete_update = zebra_interface_up_update
  57. #else
  58. void zebra_interface_down_update (struct interface *a)
  59. { return; }
  60. void zebra_interface_add_update (struct interface *a)
  61. { return; }
  62. void zebra_interface_delete_update (struct interface *a)
  63. { return; }
  64. #endif
  65. void zebra_interface_address_add_update (struct interface *a,
  66. struct connected *b)
  67. { return; }
  68. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  69. #pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update
  70. #else
  71. void zebra_interface_address_delete_update (struct interface *a,
  72. struct connected *b)
  73. { return; }
  74. #endif
  75. /* Interface parameters update */
  76. void zebra_interface_parameters_update (struct interface *ifp)
  77. { return; };