]> git.proxmox.com Git - mirror_frr.git/blame - zebra/kernel_null.c
zebra: silence zebra_serv_un unused warning
[mirror_frr.git] / zebra / kernel_null.c
CommitLineData
457eb9af
PJ
1/* NULL kernel methods for testing. */
2
46f4a4d2
PJ
3/*
4 * Copyright (C) 2006 Sun Microsystems, Inc.
5 *
6 * This file is part of Quagga.
7 *
8 * Quagga is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * Quagga is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with Quagga; see the file COPYING. If not, write to the Free
20 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
457eb9af 24#include <zebra.h>
d9d00a68 25#include <log.h>
457eb9af
PJ
26
27#include "zebra/zserv.h"
28#include "zebra/rt.h"
29#include "zebra/redistribute.h"
d9d00a68 30#include "zebra/connected.h"
88177fe3 31#include "zebra/rt_netlink.h"
8f7d9fc0 32#include "zebra/rib.h"
457eb9af
PJ
33
34int kernel_add_ipv4 (struct prefix *a, struct rib *b) { return 0; }
6ae24471 35int kernel_update_ipv4 (struct prefix *a, struct rib *b) { return 0; }
327c4cdf 36int kernel_delete_ipv4 (struct prefix *a, struct rib *b) { return 0; }
327c4cdf 37
457eb9af 38int kernel_add_ipv6 (struct prefix *a, struct rib *b) { return 0; }
dccc5225 39int kernel_update_ipv6 (struct prefix *a, struct rib *b) { return 0; }
327c4cdf 40int kernel_delete_ipv6 (struct prefix *a, struct rib *b) { return 0; }
327c4cdf 41
457eb9af
PJ
42int kernel_add_route (struct prefix_ipv4 *a, struct in_addr *b, int c, int d)
43{ return 0; }
44
45int kernel_address_add_ipv4 (struct interface *a, struct connected *b)
d9d00a68
PJ
46{
47 zlog_debug ("%s", __func__);
cb9e0cee 48 SET_FLAG (b->conf, ZEBRA_IFC_REAL);
d9d00a68
PJ
49 connected_add_ipv4 (a, 0, &b->address->u.prefix4, b->address->prefixlen,
50 (b->destination ? &b->destination->u.prefix4 : NULL),
51 NULL);
52 return 0;
53}
54
55int kernel_address_delete_ipv4 (struct interface *a, struct connected *b)
56{
57 zlog_debug ("%s", __func__);
58 connected_delete_ipv4 (a, 0, &b->address->u.prefix4, b->address->prefixlen,
59 (b->destination ? &b->destination->u.prefix4 : NULL));
60 return 0;
61}
457eb9af 62
5c610faf
DS
63int netlink_neigh_update (int cmd, int ifindex, __u32 addr, char *lla, int llalen)
64{
65 return 0;
66}
67
12f6fb97
DS
68void kernel_init (struct zebra_ns *zns) { return; }
69void kernel_terminate (struct zebra_ns *zns) { return; }
12f6fb97 70void route_read (struct zebra_ns *zns) { return; }