From 2c7cac91ed6e7db0f6937923d2b57f97dbdbc337 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:53:30 +0200 Subject: Adding upstream version 8.4.4. Signed-off-by: Daniel Baumann --- zebra/ioctl.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 zebra/ioctl.h (limited to 'zebra/ioctl.h') diff --git a/zebra/ioctl.h b/zebra/ioctl.h new file mode 100644 index 0000000..debe5ba --- /dev/null +++ b/zebra/ioctl.h @@ -0,0 +1,47 @@ +/* + * Common ioctl functions. + * Copyright (C) 1998 Kunihiro Ishiguro + * + * This file is part of GNU Zebra. + * + * GNU Zebra is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2, or (at your option) any + * later version. + * + * GNU Zebra is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; see the file COPYING; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef _ZEBRA_IOCTL_H +#define _ZEBRA_IOCTL_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* Prototypes. */ +extern void ifreq_set_name(struct ifreq *, struct interface *); +extern int if_ioctl(unsigned long, caddr_t); +extern int vrf_if_ioctl(unsigned long request, caddr_t buffer, vrf_id_t vrf_id); + +extern int if_set_flags(struct interface *, uint64_t); +extern int if_unset_flags(struct interface *, uint64_t); +extern void if_get_flags(struct interface *); + +extern void if_get_metric(struct interface *); +extern void if_get_mtu(struct interface *); + +#define AF_IOCTL(af, request, buffer) if_ioctl(request, buffer) + +#ifdef __cplusplus +} +#endif + +#endif /* _ZEBRA_IOCTL_H */ -- cgit v1.2.3