|
Packit |
6c4009 |
/* Copyright (C) 1996-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _SYS_IOCTL_H
|
|
Packit |
6c4009 |
# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Use the definitions from the kernel header files. */
|
|
Packit |
6c4009 |
#include <asm/ioctls.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Routing table calls. */
|
|
Packit |
6c4009 |
#define SIOCADDRT 0x890B /* add routing table entry */
|
|
Packit |
6c4009 |
#define SIOCDELRT 0x890C /* delete routing table entry */
|
|
Packit |
6c4009 |
#define SIOCRTMSG 0x890D /* call to routing system */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Socket configuration controls. */
|
|
Packit |
6c4009 |
#define SIOCGIFNAME 0x8910 /* get iface name */
|
|
Packit |
6c4009 |
#define SIOCSIFLINK 0x8911 /* set iface channel */
|
|
Packit |
6c4009 |
#define SIOCGIFCONF 0x8912 /* get iface list */
|
|
Packit |
6c4009 |
#define SIOCGIFFLAGS 0x8913 /* get flags */
|
|
Packit |
6c4009 |
#define SIOCSIFFLAGS 0x8914 /* set flags */
|
|
Packit |
6c4009 |
#define SIOCGIFADDR 0x8915 /* get PA address */
|
|
Packit |
6c4009 |
#define SIOCSIFADDR 0x8916 /* set PA address */
|
|
Packit |
6c4009 |
#define SIOCGIFDSTADDR 0x8917 /* get remote PA address */
|
|
Packit |
6c4009 |
#define SIOCSIFDSTADDR 0x8918 /* set remote PA address */
|
|
Packit |
6c4009 |
#define SIOCGIFBRDADDR 0x8919 /* get broadcast PA address */
|
|
Packit |
6c4009 |
#define SIOCSIFBRDADDR 0x891a /* set broadcast PA address */
|
|
Packit |
6c4009 |
#define SIOCGIFNETMASK 0x891b /* get network PA mask */
|
|
Packit |
6c4009 |
#define SIOCSIFNETMASK 0x891c /* set network PA mask */
|
|
Packit |
6c4009 |
#define SIOCGIFMETRIC 0x891d /* get metric */
|
|
Packit |
6c4009 |
#define SIOCSIFMETRIC 0x891e /* set metric */
|
|
Packit |
6c4009 |
#define SIOCGIFMEM 0x891f /* get memory address (BSD) */
|
|
Packit |
6c4009 |
#define SIOCSIFMEM 0x8920 /* set memory address (BSD) */
|
|
Packit |
6c4009 |
#define SIOCGIFMTU 0x8921 /* get MTU size */
|
|
Packit |
6c4009 |
#define SIOCSIFMTU 0x8922 /* set MTU size */
|
|
Packit |
6c4009 |
#define SIOCSIFNAME 0x8923 /* set interface name */
|
|
Packit |
6c4009 |
#define SIOCSIFHWADDR 0x8924 /* set hardware address */
|
|
Packit |
6c4009 |
#define SIOCGIFENCAP 0x8925 /* get/set encapsulations */
|
|
Packit |
6c4009 |
#define SIOCSIFENCAP 0x8926
|
|
Packit |
6c4009 |
#define SIOCGIFHWADDR 0x8927 /* Get hardware address */
|
|
Packit |
6c4009 |
#define SIOCGIFSLAVE 0x8929 /* Driver slaving support */
|
|
Packit |
6c4009 |
#define SIOCSIFSLAVE 0x8930
|
|
Packit |
6c4009 |
#define SIOCADDMULTI 0x8931 /* Multicast address lists */
|
|
Packit |
6c4009 |
#define SIOCDELMULTI 0x8932
|
|
Packit |
6c4009 |
#define SIOCGIFINDEX 0x8933 /* name -> if_index mapping */
|
|
Packit |
6c4009 |
#define SIOGIFINDEX SIOCGIFINDEX /* misprint compatibility :-) */
|
|
Packit |
6c4009 |
#define SIOCSIFPFLAGS 0x8934 /* set/get extended flags set */
|
|
Packit |
6c4009 |
#define SIOCGIFPFLAGS 0x8935
|
|
Packit |
6c4009 |
#define SIOCDIFADDR 0x8936 /* delete PA address */
|
|
Packit |
6c4009 |
#define SIOCSIFHWBROADCAST 0x8937 /* set hardware broadcast addr */
|
|
Packit |
6c4009 |
#define SIOCGIFCOUNT 0x8938 /* get number of devices */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define SIOCGIFBR 0x8940 /* Bridging support */
|
|
Packit |
6c4009 |
#define SIOCSIFBR 0x8941 /* Set bridging options */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define SIOCGIFTXQLEN 0x8942 /* Get the tx queue length */
|
|
Packit |
6c4009 |
#define SIOCSIFTXQLEN 0x8943 /* Set the tx queue length */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* ARP cache control calls. */
|
|
Packit |
6c4009 |
/* 0x8950 - 0x8952 * obsolete calls, don't re-use */
|
|
Packit |
6c4009 |
#define SIOCDARP 0x8953 /* delete ARP table entry */
|
|
Packit |
6c4009 |
#define SIOCGARP 0x8954 /* get ARP table entry */
|
|
Packit |
6c4009 |
#define SIOCSARP 0x8955 /* set ARP table entry */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* RARP cache control calls. */
|
|
Packit |
6c4009 |
#define SIOCDRARP 0x8960 /* delete RARP table entry */
|
|
Packit |
6c4009 |
#define SIOCGRARP 0x8961 /* get RARP table entry */
|
|
Packit |
6c4009 |
#define SIOCSRARP 0x8962 /* set RARP table entry */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Driver configuration calls */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define SIOCGIFMAP 0x8970 /* Get device parameters */
|
|
Packit |
6c4009 |
#define SIOCSIFMAP 0x8971 /* Set device parameters */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* DLCI configuration calls */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define SIOCADDDLCI 0x8980 /* Create new DLCI device */
|
|
Packit |
6c4009 |
#define SIOCDELDLCI 0x8981 /* Delete DLCI device */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Device private ioctl calls. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* These 16 ioctls are available to devices via the do_ioctl() device
|
|
Packit |
6c4009 |
vector. Each device should include this file and redefine these
|
|
Packit |
6c4009 |
names as their own. Because these are device dependent it is a good
|
|
Packit |
6c4009 |
idea _NOT_ to issue them to random objects and hope. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define SIOCDEVPRIVATE 0x89F0 /* to 89FF */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
* These 16 ioctl calls are protocol private
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define SIOCPROTOPRIVATE 0x89E0 /* to 89EF */
|