Back to index

glibc  2.9
ioctls.h
Go to the documentation of this file.
00001 /* Copyright (C) 1996, 1997, 1998, 2003 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 #ifndef _SYS_IOCTL_H
00020 # error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."
00021 #endif
00022 
00023 /* Use the definitions from the kernel header files.  */
00024 #include <asm/ioctls.h>
00025 
00026 /* Routing table calls.  */
00027 #define SIOCADDRT    0x890B        /* add routing table entry  */
00028 #define SIOCDELRT    0x890C        /* delete routing table entry      */
00029 #define SIOCRTMSG    0x890D        /* call to routing system   */
00030 
00031 /* Socket configuration controls. */
00032 #define SIOCGIFNAME  0x8910        /* get iface name           */
00033 #define SIOCSIFLINK  0x8911        /* set iface channel        */
00034 #define SIOCGIFCONF  0x8912        /* get iface list           */
00035 #define SIOCGIFFLAGS 0x8913        /* get flags                */
00036 #define SIOCSIFFLAGS 0x8914        /* set flags                */
00037 #define SIOCGIFADDR  0x8915        /* get PA address           */
00038 #define SIOCSIFADDR  0x8916        /* set PA address           */
00039 #define SIOCGIFDSTADDR      0x8917        /* get remote PA address    */
00040 #define SIOCSIFDSTADDR      0x8918        /* set remote PA address    */
00041 #define SIOCGIFBRDADDR      0x8919        /* get broadcast PA address */
00042 #define SIOCSIFBRDADDR      0x891a        /* set broadcast PA address */
00043 #define SIOCGIFNETMASK      0x891b        /* get network PA mask             */
00044 #define SIOCSIFNETMASK      0x891c        /* set network PA mask             */
00045 #define SIOCGIFMETRIC       0x891d        /* get metric               */
00046 #define SIOCSIFMETRIC       0x891e        /* set metric               */
00047 #define SIOCGIFMEM   0x891f        /* get memory address (BSD) */
00048 #define SIOCSIFMEM   0x8920        /* set memory address (BSD) */
00049 #define SIOCGIFMTU   0x8921        /* get MTU size                    */
00050 #define SIOCSIFMTU   0x8922        /* set MTU size                    */
00051 #define SIOCSIFNAME  0x8923        /* set interface name              */
00052 #define       SIOCSIFHWADDR 0x8924        /* set hardware address     */
00053 #define SIOCGIFENCAP 0x8925        /* get/set encapsulations       */
00054 #define SIOCSIFENCAP 0x8926
00055 #define SIOCGIFHWADDR       0x8927        /* Get hardware address            */
00056 #define SIOCGIFSLAVE 0x8929        /* Driver slaving support   */
00057 #define SIOCSIFSLAVE 0x8930
00058 #define SIOCADDMULTI 0x8931        /* Multicast address lists  */
00059 #define SIOCDELMULTI 0x8932
00060 #define SIOCGIFINDEX 0x8933        /* name -> if_index mapping */
00061 #define SIOGIFINDEX  SIOCGIFINDEX  /* misprint compatibility :-)      */
00062 #define SIOCSIFPFLAGS       0x8934        /* set/get extended flags set      */
00063 #define SIOCGIFPFLAGS       0x8935
00064 #define SIOCDIFADDR  0x8936        /* delete PA address        */
00065 #define       SIOCSIFHWBROADCAST   0x8937 /* set hardware broadcast addr     */
00066 #define SIOCGIFCOUNT 0x8938        /* get number of devices */
00067 
00068 #define SIOCGIFBR    0x8940        /* Bridging support         */
00069 #define SIOCSIFBR    0x8941        /* Set bridging options     */
00070 
00071 #define SIOCGIFTXQLEN       0x8942        /* Get the tx queue length  */
00072 #define SIOCSIFTXQLEN       0x8943        /* Set the tx queue length  */
00073 
00074 
00075 /* ARP cache control calls. */
00076                   /*  0x8950 - 0x8952  * obsolete calls, don't re-use */
00077 #define SIOCDARP     0x8953        /* delete ARP table entry   */
00078 #define SIOCGARP     0x8954        /* get ARP table entry             */
00079 #define SIOCSARP     0x8955        /* set ARP table entry             */
00080 
00081 /* RARP cache control calls. */
00082 #define SIOCDRARP    0x8960        /* delete RARP table entry  */
00083 #define SIOCGRARP    0x8961        /* get RARP table entry            */
00084 #define SIOCSRARP    0x8962        /* set RARP table entry            */
00085 
00086 /* Driver configuration calls */
00087 
00088 #define SIOCGIFMAP   0x8970        /* Get device parameters    */
00089 #define SIOCSIFMAP   0x8971        /* Set device parameters    */
00090 
00091 /* DLCI configuration calls */
00092 
00093 #define SIOCADDDLCI  0x8980        /* Create new DLCI device   */
00094 #define SIOCDELDLCI  0x8981        /* Delete DLCI device              */
00095 
00096 /* Device private ioctl calls.  */
00097 
00098 /* These 16 ioctls are available to devices via the do_ioctl() device
00099    vector.  Each device should include this file and redefine these
00100    names as their own. Because these are device dependent it is a good
00101    idea _NOT_ to issue them to random objects and hope.  */
00102 
00103 #define SIOCDEVPRIVATE             0x89F0 /* to 89FF */
00104 
00105 /*
00106  *     These 16 ioctl calls are protocol private
00107  */
00108 
00109 #define SIOCPROTOPRIVATE 0x89E0 /* to 89EF */