Annotation of embedaddon/quagga/zebra/misc_null.c, revision 1.1.1.3
1.1.1.3 ! misho 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:
1.1 misho 22: #include <zebra.h>
23:
24: #include "prefix.h"
25: #include "zebra/rtadv.h"
26: #include "zebra/irdp.h"
27: #include "zebra/interface.h"
1.1.1.2 misho 28: #include "zebra/zebra_fpm.h"
1.1 misho 29:
1.1.1.2 misho 30: #ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
1.1.1.3 ! misho 31: void _quagga_noop (void);
! 32: void _quagga_noop (void) { return; }
! 33: #pragma weak rtadv_config_write = _quagga_noop
! 34: #pragma weak irdp_config_write = _quagga_noop
! 35: #ifdef HAVE_NET_RT_IFLIST
! 36: #pragma weak ifstat_update_sysctl = _quagga_noop
! 37: #endif
! 38: #ifdef HAVE_PROC_NET_DEV
! 39: #pragma weak ifstat_update_proc = _quagga_noop
! 40: #endif
1.1.1.2 misho 41: #else
42: void rtadv_config_write (struct vty *vty, struct interface *ifp) { return; }
43: void irdp_config_write (struct vty *vty, struct interface *ifp) { return; }
1.1.1.3 ! misho 44: #ifdef HAVE_PROC_NET_DEV
! 45: void ifstat_update_proc (void) { return; }
! 46: #endif
! 47: #ifdef HAVE_NET_RT_IFLIST
1.1.1.2 misho 48: void ifstat_update_sysctl (void) { return; }
1.1.1.3 ! misho 49: #endif
1.1.1.2 misho 50: #endif
51:
52: void
53: zfpm_trigger_update (struct route_node *rn, const char *reason)
54: {
55: return;
56: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>