summaryrefslogtreecommitdiffstats
path: root/zebra/ioctl.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:16:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:16:35 +0000
commite2bbf175a2184bd76f6c54ccf8456babeb1a46fc (patch)
treef0b76550d6e6f500ada964a3a4ee933a45e5a6f1 /zebra/ioctl.h
parentInitial commit. (diff)
downloadfrr-e2bbf175a2184bd76f6c54ccf8456babeb1a46fc.tar.xz
frr-e2bbf175a2184bd76f6c54ccf8456babeb1a46fc.zip
Adding upstream version 9.1.upstream/9.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'zebra/ioctl.h')
-rw-r--r--zebra/ioctl.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/zebra/ioctl.h b/zebra/ioctl.h
new file mode 100644
index 0000000..8a97cbc
--- /dev/null
+++ b/zebra/ioctl.h
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Common ioctl functions.
+ * Copyright (C) 1998 Kunihiro Ishiguro
+ */
+
+#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 */