summaryrefslogtreecommitdiffstats
path: root/zebra/redistribute_null.c
diff options
context:
space:
mode:
authorpaul <paul>2006-07-27 19:59:58 +0000
committerpaul <paul>2006-07-27 19:59:58 +0000
commitdc96de65bcdaca5346e7a4b3c11846ad3a6272d3 (patch)
treec8da81ea12e6ee8a905dc8b37ac97c02af343c37 /zebra/redistribute_null.c
parentb2d769edff602fda3b522b3fe7bf02915a7a317b (diff)
downloadquagga-dc96de65bcdaca5346e7a4b3c11846ad3a6272d3.tar.bz2
quagga-dc96de65bcdaca5346e7a4b3c11846ad3a6272d3.tar.xz
[zebra] Add test rig code, for testing the zebra RIB
2006-07-27 Paul Jakma <paul.jakma@sun.com> * {ioctl,kernel}_null.c: Dummy/Null kernel method implementations, useful for testing zebra code that calls such methods. * {redistribute,misc}_null.c: Dummy/Null methods, as above. But for zclient, and for various misc functions. * test_main.c: Test harness for zebra, currently just to test the RIB. * Makefile.am: Build testzebra using above. * zebra_rib.c: Add a global for the workqueue hold time, useful for testing.
Diffstat (limited to 'zebra/redistribute_null.c')
-rw-r--r--zebra/redistribute_null.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/zebra/redistribute_null.c b/zebra/redistribute_null.c
new file mode 100644
index 00000000..e57a73b9
--- /dev/null
+++ b/zebra/redistribute_null.c
@@ -0,0 +1,26 @@
+#include <zebra.h>
+#include "zebra/rib.h"
+#include "zebra/zserv.h"
+
+#include "zebra/redistribute.h"
+
+void zebra_redistribute_add (int a, struct zserv *b, int c)
+{ return; }
+#pragma weak zebra_redistribute_delete = zebra_redistribute_add
+#pragma weak zebra_redistribute_default_add = zebra_redistribute_add
+#pragma weak zebra_redistribute_default_delete = zebra_redistribute_add
+
+void redistribute_add (struct prefix *a, struct rib *b)
+{ return; }
+#pragma weak redistribute_delete = redistribute_add
+
+void zebra_interface_up_update (struct interface *a)
+{ return; }
+#pragma weak zebra_interface_down_update = zebra_interface_up_update
+#pragma weak zebra_interface_add_update = zebra_interface_up_update
+#pragma weak zebra_interface_delete_update = zebra_interface_up_update
+
+void zebra_interface_address_add_update (struct interface *a,
+ struct connected *b)
+{ return; }
+#pragma weak zebra_interface_address_delete_update = zebra_interface_address_add_update