redistribute_null.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #include <zebra.h>
  2. #include "zebra/rib.h"
  3. #include "zebra/zserv.h"
  4. #include "zebra/redistribute.h"
  5. void zebra_redistribute_add (int a, struct zserv *b, int c)
  6. { return; }
  7. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  8. #pragma weak zebra_redistribute_delete = zebra_redistribute_add
  9. #pragma weak zebra_redistribute_default_add = zebra_redistribute_add
  10. #pragma weak zebra_redistribute_default_delete = zebra_redistribute_add
  11. #else
  12. void zebra_redistribute_delete (int a, struct zserv *b, int c)
  13. { return; }
  14. void zebra_redistribute_default_add (int a, struct zserv *b, int c)
  15. { return; }
  16. void zebra_redistribute_default_delete (int a, struct zserv *b, int c)
  17. { return; }
  18. #endif
  19. void redistribute_add (struct prefix *a, struct rib *b)
  20. { return; }
  21. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  22. #pragma weak redistribute_delete = redistribute_add
  23. #else
  24. void redistribute_delete (struct prefix *a, struct rib *b)
  25. { return; }
  26. #endif
  27. void zebra_interface_up_update (struct interface *a)
  28. { return; }
  29. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  30. #pragma weak zebra_interface_down_update = zebra_interface_up_update
  31. #pragma weak zebra_interface_add_update = zebra_interface_up_update
  32. #pragma weak zebra_interface_delete_update = zebra_interface_up_update
  33. #else
  34. void zebra_interface_down_update (struct interface *a)
  35. { return; }
  36. void zebra_interface_add_update (struct interface *a)
  37. { return; }
  38. void zebra_interface_delete_update (struct interface *a)
  39. { return; }
  40. #endif
  41. void zebra_interface_address_add_update (struct interface *a,
  42. struct connected *b)
  43. { return; }
  44. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  45. #pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update
  46. #else
  47. void zebra_interface_address_delete_update (struct interface *a,
  48. struct connected *b)
  49. { return; }
  50. #endif