redistribute_null.c 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. { return; }
  27. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  28. #pragma weak zebra_redistribute_delete = zebra_redistribute_add
  29. #pragma weak zebra_redistribute_default_add = zebra_redistribute_add
  30. #pragma weak zebra_redistribute_default_delete = zebra_redistribute_add
  31. #else
  32. void zebra_redistribute_delete (int a, struct zserv *b, int c)
  33. { return; }
  34. void zebra_redistribute_default_add (int a, struct zserv *b, int c)
  35. { return; }
  36. void zebra_redistribute_default_delete (int a, struct zserv *b, int c)
  37. { return; }
  38. #endif
  39. void redistribute_add (struct prefix *a, struct rib *b)
  40. { return; }
  41. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  42. #pragma weak redistribute_delete = redistribute_add
  43. #else
  44. void redistribute_delete (struct prefix *a, struct rib *b)
  45. { return; }
  46. #endif
  47. void zebra_interface_up_update (struct interface *a)
  48. { return; }
  49. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  50. #pragma weak zebra_interface_down_update = zebra_interface_up_update
  51. #pragma weak zebra_interface_add_update = zebra_interface_up_update
  52. #pragma weak zebra_interface_delete_update = zebra_interface_up_update
  53. #else
  54. void zebra_interface_down_update (struct interface *a)
  55. { return; }
  56. void zebra_interface_add_update (struct interface *a)
  57. { return; }
  58. void zebra_interface_delete_update (struct interface *a)
  59. { return; }
  60. #endif
  61. void zebra_interface_address_add_update (struct interface *a,
  62. struct connected *b)
  63. { return; }
  64. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  65. #pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update
  66. #else
  67. void zebra_interface_address_delete_update (struct interface *a,
  68. struct connected *b)
  69. { return; }
  70. #endif