Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame^] | 1 | /* NULL kernel methods for testing. */ |
| 2 | |
| 3 | #include <zebra.h> |
| 4 | |
| 5 | #include "zebra/zserv.h" |
| 6 | #include "zebra/rt.h" |
| 7 | #include "zebra/redistribute.h" |
| 8 | |
| 9 | int kernel_add_ipv4 (struct prefix *a, struct rib *b) { return 0; } |
| 10 | #pragma weak kernel_delete_ipv4 = kernel_add_ipv4 |
| 11 | int kernel_add_ipv6 (struct prefix *a, struct rib *b) { return 0; } |
| 12 | #pragma weak kernel_delete_ipv6 = kernel_add_ipv6 |
| 13 | int kernel_delete_ipv6_old (struct prefix_ipv6 *dest, struct in6_addr *gate, |
| 14 | unsigned int index, int flags, int table) |
| 15 | { return 0; } |
| 16 | |
| 17 | int kernel_add_route (struct prefix_ipv4 *a, struct in_addr *b, int c, int d) |
| 18 | { return 0; } |
| 19 | |
| 20 | int kernel_address_add_ipv4 (struct interface *a, struct connected *b) |
| 21 | { return 0; } |
| 22 | #pragma weak kernel_address_delete_ipv4 = kernel_address_add_ipv4 |
| 23 | |
| 24 | void kernel_init (void) { return; } |
| 25 | #pragma weak route_read = kernel_init |