blob: 54198c8e6fb924903b9a37dbaba4594c2f7ae0c7 [file] [log] [blame]
Paul Jakma457eb9a2006-07-27 19:59:58 +00001#include <zebra.h>
2#include "zebra/rib.h"
3#include "zebra/zserv.h"
4
5#include "zebra/redistribute.h"
6
7void zebra_redistribute_add (int a, struct zserv *b, int c)
8{ return; }
Doug VanLeuven327c4cd2012-12-14 14:58:30 +02009#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
Paul Jakma457eb9a2006-07-27 19:59:58 +000010#pragma weak zebra_redistribute_delete = zebra_redistribute_add
11#pragma weak zebra_redistribute_default_add = zebra_redistribute_add
12#pragma weak zebra_redistribute_default_delete = zebra_redistribute_add
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020013#else
14void zebra_redistribute_delete (int a, struct zserv *b, int c)
15{ return; }
16void zebra_redistribute_default_add (int a, struct zserv *b, int c)
17{ return; }
18void zebra_redistribute_default_delete (int a, struct zserv *b, int c)
19{ return; }
20#endif
Paul Jakma457eb9a2006-07-27 19:59:58 +000021
22void redistribute_add (struct prefix *a, struct rib *b)
23{ return; }
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020024#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
Paul Jakma457eb9a2006-07-27 19:59:58 +000025#pragma weak redistribute_delete = redistribute_add
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020026#else
27void redistribute_delete (struct prefix *a, struct rib *b)
28{ return; }
29#endif
Paul Jakma457eb9a2006-07-27 19:59:58 +000030
31void zebra_interface_up_update (struct interface *a)
32{ return; }
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020033#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
Paul Jakma457eb9a2006-07-27 19:59:58 +000034#pragma weak zebra_interface_down_update = zebra_interface_up_update
35#pragma weak zebra_interface_add_update = zebra_interface_up_update
36#pragma weak zebra_interface_delete_update = zebra_interface_up_update
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020037#else
38void zebra_interface_down_update (struct interface *a)
39{ return; }
40void zebra_interface_add_update (struct interface *a)
41{ return; }
42void zebra_interface_delete_update (struct interface *a)
43{ return; }
44#endif
Paul Jakma457eb9a2006-07-27 19:59:58 +000045
46void zebra_interface_address_add_update (struct interface *a,
47 struct connected *b)
48{ return; }
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020049#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
Paul Jakma457eb9a2006-07-27 19:59:58 +000050#pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update
Doug VanLeuven327c4cd2012-12-14 14:58:30 +020051#else
52void zebra_interface_address_delete_update (struct interface *a,
53 struct connected *b)
54{ return; }
55#endif