]> git.proxmox.com Git - mirror_frr.git/blame - zebra/ioctl_null.c
*: make consistent & update GPLv2 file headers
[mirror_frr.git] / zebra / ioctl_null.c
CommitLineData
46f4a4d2
PJ
1/*
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 *
896014f4
DL
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
46f4a4d2
PJ
19 */
20
457eb9af
PJ
21#include <zebra.h>
22
23#include "zebra/rib.h"
24#include "zebra/rt.h"
25#include "zebra/ioctl.h"
26
27void ifreq_set_name (struct ifreq *a, struct interface *b) { return; }
28
d9d00a68
PJ
29int if_set_prefix (struct interface *a, struct connected *b)
30{
31 kernel_address_add_ipv4 (a, b);
32 return 0;
33}
34
35int if_unset_prefix (struct interface *a, struct connected *b)
36{
37 kernel_address_delete_ipv4 (a, b);
38 return 0;
39}
40
41int if_prefix_add_ipv6 (struct interface *a, struct connected *b) { return 0; }
327c4cdf 42int if_prefix_delete_ipv6 (struct interface *a, struct connected *b) { return 0; }
457eb9af
PJ
43
44int if_ioctl (u_long a, caddr_t b) { return 0; }
45
46int if_set_flags (struct interface *a, uint64_t b) { return 0; }
327c4cdf 47int if_unset_flags (struct interface *a, uint64_t b) { return 0; }
457eb9af
PJ
48
49void if_get_flags (struct interface *a) { return; }
457eb9af
PJ
50
51#ifdef SOLARIS_IPV6
52#pragma weak if_ioctl_ipv6 = if_ioctl
53struct connected *if_lookup_linklocal(struct interface *a) { return 0; }
54
55#define AF_IOCTL(af, request, buffer) \
56 ((af) == AF_INET? if_ioctl(request, buffer) : \
57 if_ioctl_ipv6(request, buffer))
58#else /* SOLARIS_IPV6 */
59
60#define AF_IOCTL(af, request, buffer) if_ioctl(request, buffer)
61
62#endif /* SOLARIS_IPV6 */