root/include/linux/sockios.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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 /* Routing table calls. */
  22 #define SIOCADDRT       0x890B          /* add routing table entry      */
  23 #define SIOCDELRT       0x890C          /* delete routing table entry   */
  24 
  25 /* Socket configuration controls. */
  26 #define SIOCGIFNAME     0x8910          /* get iface name               */
  27 #define SIOCSIFLINK     0x8911          /* set iface channel            */
  28 #define SIOCGIFCONF     0x8912          /* get iface list               */
  29 #define SIOCGIFFLAGS    0x8913          /* get flags                    */
  30 #define SIOCSIFFLAGS    0x8914          /* set flags                    */
  31 #define SIOCGIFADDR     0x8915          /* get PA address               */
  32 #define SIOCSIFADDR     0x8916          /* set PA address               */
  33 #define SIOCGIFDSTADDR  0x8917          /* get remote PA address        */
  34 #define SIOCSIFDSTADDR  0x8918          /* set remote PA address        */
  35 #define SIOCGIFBRDADDR  0x8919          /* get broadcast PA address     */
  36 #define SIOCSIFBRDADDR  0x891a          /* set broadcast PA address     */
  37 #define SIOCGIFNETMASK  0x891b          /* get network PA mask          */
  38 #define SIOCSIFNETMASK  0x891c          /* set network PA mask          */
  39 #define SIOCGIFMETRIC   0x891d          /* get metric                   */
  40 #define SIOCSIFMETRIC   0x891e          /* set metric                   */
  41 #define SIOCGIFMEM      0x891f          /* get memory address (BSD)     */
  42 #define SIOCSIFMEM      0x8920          /* set memory address (BSD)     */
  43 #define SIOCGIFMTU      0x8921          /* get MTU size                 */
  44 #define SIOCSIFMTU      0x8922          /* set MTU size                 */
  45 #define OLD_SIOCGIFHWADDR       0x8923          /* get hardware address         */
  46 #define SIOCSIFHWADDR   0x8924          /* set hardware address (NI)    */
  47 #define SIOCGIFENCAP    0x8925          /* get/set slip encapsulation   */
  48 #define SIOCSIFENCAP    0x8926          
  49 #define SIOCGIFHWADDR   0x8927          /* Get hardware address         */
  50 #define SIOCGIFSLAVE    0x8929          /* Driver slaving support       */
  51 #define SIOCSIFSLAVE    0x8930
  52 /* begin multicast support change */
  53 #define SIOCADDMULTI  0x8931
  54 #define SIOCDELMULTI  0x8932
  55 /* end multicast support change */
  56 
  57 /* Routing table calls (oldrtent - don't use) */
  58 #define SIOCADDRTOLD    0x8940          /* add routing table entry      */
  59 #define SIOCDELRTOLD    0x8941          /* delete routing table entry   */
  60 
  61 /* ARP cache control calls. */
  62 #define SIOCDARP        0x8950          /* delete ARP table entry       */
  63 #define SIOCGARP        0x8951          /* get ARP table entry          */
  64 #define SIOCSARP        0x8952          /* set ARP table entry          */
  65 
  66 /* RARP cache control calls. */
  67 #define SIOCDRARP       0x8960          /* delete RARP table entry      */
  68 #define SIOCGRARP       0x8961          /* get RARP table entry         */
  69 #define SIOCSRARP       0x8962          /* set RARP table entry         */
  70 
  71 /* Driver configuration calls */
  72 
  73 #define SIOCGIFMAP      0x8970          /* Get device parameters        */
  74 #define SIOCSIFMAP      0x8971          /* Set device parameters        */
  75 
  76 /* Device private ioctl calls */
  77 
  78 /*
  79  *      These 16 ioctls are available to devices via the do_ioctl() device
  80  *      vector. Each device should include this file and redefine these names
  81  *      as their own. Because these are device dependent it is a good idea
  82  *      _NOT_ to issue them to random objects and hope.
  83  */
  84  
  85 #define SIOCDEVPRIVATE  0x89F0  /* to 89FF */
  86 
  87 /*
  88  *      These 16 ioctl calls are protocol private
  89  */
  90  
  91 #define SIOCPROTOPRIVATE 0x89E0 /* to 89EF */
  92 #endif  /* _LINUX_SOCKIOS_H */

/* [previous][next][first][last][top][bottom][index][help] */