]>
Commit | Line | Data |
---|---|---|
896014f4 DL |
1 | /* |
2 | * NULL kernel methods for testing. | |
46f4a4d2 PJ |
3 | * Copyright (C) 2006 Sun Microsystems, Inc. |
4 | * | |
5 | * This file is part of Quagga. | |
6 | * | |
7 | * Quagga is free software; you can redistribute it and/or modify it | |
8 | * under the terms of the GNU General Public License as published by the | |
9 | * Free Software Foundation; either version 2, or (at your option) any | |
10 | * later version. | |
11 | * | |
12 | * Quagga is distributed in the hope that it will be useful, but | |
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | * General Public License for more details. | |
16 | * | |
896014f4 DL |
17 | * You should have received a copy of the GNU General Public License along |
18 | * with this program; see the file COPYING; if not, write to the Free Software | |
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
46f4a4d2 PJ |
20 | */ |
21 | ||
457eb9af | 22 | #include <zebra.h> |
d9d00a68 | 23 | #include <log.h> |
457eb9af | 24 | |
82f97584 | 25 | #include "vty.h" |
457eb9af PJ |
26 | #include "zebra/zserv.h" |
27 | #include "zebra/rt.h" | |
28 | #include "zebra/redistribute.h" | |
d9d00a68 | 29 | #include "zebra/connected.h" |
88177fe3 | 30 | #include "zebra/rt_netlink.h" |
8f7d9fc0 | 31 | #include "zebra/rib.h" |
457eb9af | 32 | |
05737783 CF |
33 | int kernel_route_rib (struct prefix *a, struct prefix *b, |
34 | struct rib *old, struct rib *new) { return 0; } | |
327c4cdf | 35 | |
457eb9af | 36 | int kernel_address_add_ipv4 (struct interface *a, struct connected *b) |
d9d00a68 PJ |
37 | { |
38 | zlog_debug ("%s", __func__); | |
cb9e0cee | 39 | SET_FLAG (b->conf, ZEBRA_IFC_REAL); |
d9d00a68 PJ |
40 | connected_add_ipv4 (a, 0, &b->address->u.prefix4, b->address->prefixlen, |
41 | (b->destination ? &b->destination->u.prefix4 : NULL), | |
42 | NULL); | |
43 | return 0; | |
44 | } | |
45 | ||
46 | int kernel_address_delete_ipv4 (struct interface *a, struct connected *b) | |
47 | { | |
48 | zlog_debug ("%s", __func__); | |
49 | connected_delete_ipv4 (a, 0, &b->address->u.prefix4, b->address->prefixlen, | |
50 | (b->destination ? &b->destination->u.prefix4 : NULL)); | |
51 | return 0; | |
52 | } | |
457eb9af | 53 | |
6b8a5694 | 54 | int kernel_neigh_update (int a, int b, uint32_t c, char *d, int e) |
5c610faf DS |
55 | { |
56 | return 0; | |
57 | } | |
58 | ||
12f6fb97 DS |
59 | void kernel_init (struct zebra_ns *zns) { return; } |
60 | void kernel_terminate (struct zebra_ns *zns) { return; } | |
12f6fb97 | 61 | void route_read (struct zebra_ns *zns) { return; } |
1498c059 DS |
62 | |
63 | int kernel_get_ipmr_sg_stats (void *m) { return 0; } |