]> git.proxmox.com Git - mirror_frr.git/blame - zebra/ioctl_null.c
release: FRR 3.0-rc1
[mirror_frr.git] / zebra / ioctl_null.c
CommitLineData
ac4d0be5 1/*
46f4a4d2
PJ
2 * Copyright (C) 2006 Sun Microsystems, Inc.
3 *
4 * This file is part of Quagga.
5 *
6 * Quagga is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
9 * later version.
10 *
11 * Quagga is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Quagga; see the file COPYING. If not, write to the Free
18 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
ac4d0be5 19 * 02111-1307, USA.
46f4a4d2
PJ
20 */
21
457eb9af
PJ
22#include <zebra.h>
23
24#include "zebra/rib.h"
25#include "zebra/rt.h"
26#include "zebra/ioctl.h"
27
ac4d0be5 28void ifreq_set_name(struct ifreq *a, struct interface *b)
29{
30 return;
31}
457eb9af 32
ac4d0be5 33int if_set_prefix(struct interface *a, struct connected *b)
34{
35 kernel_address_add_ipv4(a, b);
36 return 0;
d9d00a68
PJ
37}
38
ac4d0be5 39int if_unset_prefix(struct interface *a, struct connected *b)
40{
41 kernel_address_delete_ipv4(a, b);
42 return 0;
d9d00a68
PJ
43}
44
ac4d0be5 45int if_prefix_add_ipv6(struct interface *a, struct connected *b)
46{
47 return 0;
48}
49int if_prefix_delete_ipv6(struct interface *a, struct connected *b)
50{
51 return 0;
52}
457eb9af 53
ac4d0be5 54int if_ioctl(u_long a, caddr_t b)
55{
56 return 0;
57}
457eb9af 58
ac4d0be5 59int if_set_flags(struct interface *a, uint64_t b)
60{
61 return 0;
62}
63int if_unset_flags(struct interface *a, uint64_t b)
64{
65 return 0;
66}
457eb9af 67
ac4d0be5 68void if_get_flags(struct interface *a)
69{
70 return;
71}
457eb9af
PJ
72
73#ifdef SOLARIS_IPV6
74#pragma weak if_ioctl_ipv6 = if_ioctl
ac4d0be5 75struct connected *if_lookup_linklocal(struct interface *a)
76{
77 return 0;
78}
457eb9af 79
ac4d0be5 80#define AF_IOCTL(af, request, buffer) \
81 ((af) == AF_INET ? if_ioctl(request, buffer) \
82 : if_ioctl_ipv6(request, buffer))
83#else /* SOLARIS_IPV6 */
457eb9af
PJ
84
85#define AF_IOCTL(af, request, buffer) if_ioctl(request, buffer)
86
87#endif /* SOLARIS_IPV6 */