misc_null.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 "prefix.h"
  23. #include "zebra/rtadv.h"
  24. #include "zebra/irdp.h"
  25. #include "zebra/interface.h"
  26. #include "zebra/zebra_fpm.h"
  27. #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
  28. void _quagga_noop (void);
  29. void _quagga_noop (void) { return; }
  30. #pragma weak rtadv_config_write = _quagga_noop
  31. #pragma weak irdp_config_write = _quagga_noop
  32. #ifdef HAVE_NET_RT_IFLIST
  33. #pragma weak ifstat_update_sysctl = _quagga_noop
  34. #endif
  35. #ifdef HAVE_PROC_NET_DEV
  36. #pragma weak ifstat_update_proc = _quagga_noop
  37. #endif
  38. #else
  39. void rtadv_config_write (struct vty *vty, struct interface *ifp) { return; }
  40. void irdp_config_write (struct vty *vty, struct interface *ifp) { return; }
  41. #ifdef HAVE_PROC_NET_DEV
  42. void ifstat_update_proc (void) { return; }
  43. #endif
  44. #ifdef HAVE_NET_RT_IFLIST
  45. void ifstat_update_sysctl (void) { return; }
  46. #endif
  47. #endif
  48. void
  49. zfpm_trigger_update (struct route_node *rn, const char *reason)
  50. {
  51. return;
  52. }