~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/linux/sockios.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * INET         An implementation of the TCP/IP protocol suite for the LINUX
  3  *              operating system.  INET is implemented using the  BSD Socket
  4  *              interface as the means of communication with the user level.
  5  *
  6  *              Definitions of the socket-level I/O control calls.
  7  *
  8  * Version:     @(#)sockios.h   1.0.2   03/09/93
  9  *
 10  * Authors:     Ross Biro, <bir7@leland.Stanford.Edu>
 11  *              Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
 12  *
 13  *              This program is free software; you can redistribute it and/or
 14  *              modify it under the terms of the GNU General Public License
 15  *              as published by the Free Software Foundation; either version
 16  *              2 of the License, or (at your option) any later version.
 17  */
 18 #ifndef _LINUX_SOCKIOS_H
 19 #define _LINUX_SOCKIOS_H
 20 
 21 #include <asm/sockios.h>
 22 
 23 /* Linux-specific socket ioctls */
 24 #define SIOCINQ         FIONREAD
 25 #define SIOCOUTQ        TIOCOUTQ
 26 
 27 /* Routing table calls. */
 28 #define SIOCADDRT       0x890B          /* add routing table entry      */
 29 #define SIOCDELRT       0x890C          /* delete routing table entry   */
 30 #define SIOCRTMSG       0x890D          /* call to routing system       */
 31 
 32 /* Socket configuration controls. */
 33 #define SIOCGIFNAME     0x8910          /* get iface name               */
 34 #define SIOCSIFLINK     0x8911          /* set iface channel            */
 35 #define SIOCGIFCONF     0x8912          /* get iface list               */
 36 #define SIOCGIFFLAGS    0x8913          /* get flags                    */
 37 #define SIOCSIFFLAGS    0x8914          /* set flags                    */
 38 #define SIOCGIFADDR     0x8915          /* get PA address               */
 39 #define SIOCSIFADDR     0x8916          /* set PA address               */
 40 #define SIOCGIFDSTADDR  0x8917          /* get remote PA address        */
 41 #define SIOCSIFDSTADDR  0x8918          /* set remote PA address        */
 42 #define SIOCGIFBRDADDR  0x8919          /* get broadcast PA address     */
 43 #define SIOCSIFBRDADDR  0x891a          /* set broadcast PA address     */
 44 #define SIOCGIFNETMASK  0x891b          /* get network PA mask          */
 45 #define SIOCSIFNETMASK  0x891c          /* set network PA mask          */
 46 #define SIOCGIFMETRIC   0x891d          /* get metric                   */
 47 #define SIOCSIFMETRIC   0x891e          /* set metric                   */
 48 #define SIOCGIFMEM      0x891f          /* get memory address (BSD)     */
 49 #define SIOCSIFMEM      0x8920          /* set memory address (BSD)     */
 50 #define SIOCGIFMTU      0x8921          /* get MTU size                 */
 51 #define SIOCSIFMTU      0x8922          /* set MTU size                 */
 52 #define SIOCSIFNAME     0x8923          /* set interface name */
 53 #define SIOCSIFHWADDR   0x8924          /* set hardware address         */
 54 #define SIOCGIFENCAP    0x8925          /* get/set encapsulations       */
 55 #define SIOCSIFENCAP    0x8926          
 56 #define SIOCGIFHWADDR   0x8927          /* Get hardware address         */
 57 #define SIOCGIFSLAVE    0x8929          /* Driver slaving support       */
 58 #define SIOCSIFSLAVE    0x8930
 59 #define SIOCADDMULTI    0x8931          /* Multicast address lists      */
 60 #define SIOCDELMULTI    0x8932
 61 #define SIOCGIFINDEX    0x8933          /* name -> if_index mapping     */
 62 #define SIOGIFINDEX     SIOCGIFINDEX    /* misprint compatibility :-)   */
 63 #define SIOCSIFPFLAGS   0x8934          /* set/get extended flags set   */
 64 #define SIOCGIFPFLAGS   0x8935
 65 #define SIOCDIFADDR     0x8936          /* delete PA address            */
 66 #define SIOCSIFHWBROADCAST      0x8937  /* set hardware broadcast addr  */
 67 #define SIOCGIFCOUNT    0x8938          /* get number of devices */
 68 
 69 #define SIOCGIFBR       0x8940          /* Bridging support             */
 70 #define SIOCSIFBR       0x8941          /* Set bridging options         */
 71 
 72 #define SIOCGIFTXQLEN   0x8942          /* Get the tx queue length      */
 73 #define SIOCSIFTXQLEN   0x8943          /* Set the tx queue length      */
 74 
 75 #define SIOCGIFDIVERT   0x8944          /* Frame diversion support */
 76 #define SIOCSIFDIVERT   0x8945          /* Set frame diversion options */
 77 
 78 #define SIOCETHTOOL     0x8946          /* Ethtool interface            */
 79 
 80 /* ARP cache control calls. */
 81                     /*  0x8950 - 0x8952  * obsolete calls, don't re-use */
 82 #define SIOCDARP        0x8953          /* delete ARP table entry       */
 83 #define SIOCGARP        0x8954          /* get ARP table entry          */
 84 #define SIOCSARP        0x8955          /* set ARP table entry          */
 85 
 86 /* RARP cache control calls. */
 87 #define SIOCDRARP       0x8960          /* delete RARP table entry      */
 88 #define SIOCGRARP       0x8961          /* get RARP table entry         */
 89 #define SIOCSRARP       0x8962          /* set RARP table entry         */
 90 
 91 /* Driver configuration calls */
 92 
 93 #define SIOCGIFMAP      0x8970          /* Get device parameters        */
 94 #define SIOCSIFMAP      0x8971          /* Set device parameters        */
 95 
 96 /* DLCI configuration calls */
 97 
 98 #define SIOCADDDLCI     0x8980          /* Create new DLCI device       */
 99 #define SIOCDELDLCI     0x8981          /* Delete DLCI device           */
100 
101 /* Device private ioctl calls */
102 
103 /*
104  *      These 16 ioctls are available to devices via the do_ioctl() device
105  *      vector. Each device should include this file and redefine these names
106  *      as their own. Because these are device dependent it is a good idea
107  *      _NOT_ to issue them to random objects and hope.
108  */
109  
110 #define SIOCDEVPRIVATE  0x89F0  /* to 89FF */
111 
112 /*
113  *      These 16 ioctl calls are protocol private
114  */
115  
116 #define SIOCPROTOPRIVATE 0x89E0 /* to 89EF */
117 #endif  /* _LINUX_SOCKIOS_H */
118 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.