]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/ioctl_null.c
2 * Copyright (C) 2006 Sun Microsystems, Inc.
4 * This file is part of Quagga.
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
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.
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
24 #include "zebra/rib.h"
26 #include "zebra/ioctl.h"
28 void ifreq_set_name(struct ifreq
*a
, struct interface
*b
)
33 int if_set_prefix(struct interface
*a
, struct connected
*b
)
35 kernel_address_add_ipv4(a
, b
);
39 int if_unset_prefix(struct interface
*a
, struct connected
*b
)
41 kernel_address_delete_ipv4(a
, b
);
45 int if_prefix_add_ipv6(struct interface
*a
, struct connected
*b
)
49 int if_prefix_delete_ipv6(struct interface
*a
, struct connected
*b
)
54 int if_ioctl(u_long a
, caddr_t b
)
59 int if_set_flags(struct interface
*a
, uint64_t b
)
63 int if_unset_flags(struct interface
*a
, uint64_t b
)
68 void if_get_flags(struct interface
*a
)
74 #pragma weak if_ioctl_ipv6 = if_ioctl
75 struct connected
*if_lookup_linklocal(struct interface
*a
)
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 */
85 #define AF_IOCTL(af, request, buffer) if_ioctl(request, buffer)
87 #endif /* SOLARIS_IPV6 */