blob: a84f43716322e499801a1a8bc02b4d488d52a586 [file] [log] [blame]
Paul Jakma457eb9a2006-07-27 19:59:58 +00001/* 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
9int kernel_add_ipv4 (struct prefix *a, struct rib *b) { return 0; }
10#pragma weak kernel_delete_ipv4 = kernel_add_ipv4
11int kernel_add_ipv6 (struct prefix *a, struct rib *b) { return 0; }
12#pragma weak kernel_delete_ipv6 = kernel_add_ipv6
13int kernel_delete_ipv6_old (struct prefix_ipv6 *dest, struct in6_addr *gate,
14 unsigned int index, int flags, int table)
15{ return 0; }
16
17int kernel_add_route (struct prefix_ipv4 *a, struct in_addr *b, int c, int d)
18{ return 0; }
19
20int 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
24void kernel_init (void) { return; }
25#pragma weak route_read = kernel_init