April 2024 | ||||||
Mo | Tu | We | Th | Fr | Sa | Su |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
001: /* 002: * INET An implementation of the TCP/IP protocol suite for the LINUX 003: * operating system. INET is implemented using the BSD Socket 004: * interface as the means of communication with the user level. 005: * 006: * Definitions of the socket-level I/O control calls. 007: * 008: * Version: @(#)sockios.h 1.0.2 03/09/93 009: * 010: * Authors: Ross Biro 011: * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> 012: * 013: * This program is free software; you can redistribute it and/or 014: * modify it under the terms of the GNU General Public License 015: * as published by the Free Software Foundation; either version 016: * 2 of the License, or (at your option) any later version. 017: */ 018: #ifndef _LINUX_SOCKIOS_H 019: #define _LINUX_SOCKIOS_H 020: 021: #include <asm/sockios.h> 022: 023: /* Linux-specific socket ioctls */ 024: #define SIOCINQ FIONREAD 025: #define SIOCOUTQ TIOCOUTQ /* output queue size (not sent + not acked) */ 026: 027: /* Routing table calls. */ 028: #define SIOCADDRT 0x890B /* add routing table entry */ 029: #define SIOCDELRT 0x890C /* delete routing table entry */ 030: #define SIOCRTMSG 0x890D /* call to routing system */ 031: 032: /* Socket configuration controls. */ 033: #define SIOCGIFNAME 0x8910 /* get iface name */ 034: #define SIOCSIFLINK 0x8911 /* set iface channel */ 035: #define SIOCGIFCONF 0x8912 /* get iface list */ 036: #define SIOCGIFFLAGS 0x8913 /* get flags */ 037: #define SIOCSIFFLAGS 0x8914 /* set flags */ 038: #define SIOCGIFADDR 0x8915 /* get PA address */ 039: #define SIOCSIFADDR 0x8916 /* set PA address */ 040: #define SIOCGIFDSTADDR 0x8917 /* get remote PA address */ 041: #define SIOCSIFDSTADDR 0x8918 /* set remote PA address */ 042: #define SIOCGIFBRDADDR 0x8919 /* get broadcast PA address */ 043: #define SIOCSIFBRDADDR 0x891a /* set broadcast PA address */ 044: #define SIOCGIFNETMASK 0x891b /* get network PA mask */ 045: #define SIOCSIFNETMASK 0x891c /* set network PA mask */ 046: #define SIOCGIFMETRIC 0x891d /* get metric */ 047: #define SIOCSIFMETRIC 0x891e /* set metric */ 048: #define SIOCGIFMEM 0x891f /* get memory address (BSD) */ 049: #define SIOCSIFMEM 0x8920 /* set memory address (BSD) */ 050: #define SIOCGIFMTU 0x8921 /* get MTU size */ 051: #define SIOCSIFMTU 0x8922 /* set MTU size */ 052: #define SIOCSIFNAME 0x8923 /* set interface name */ 053: #define SIOCSIFHWADDR 0x8924 /* set hardware address */ 054: #define SIOCGIFENCAP 0x8925 /* get/set encapsulations */ 055: #define SIOCSIFENCAP 0x8926 056: #define SIOCGIFHWADDR 0x8927 /* Get hardware address */ 057: #define SIOCGIFSLAVE 0x8929 /* Driver slaving support */ 058: #define SIOCSIFSLAVE 0x8930 059: #define SIOCADDMULTI 0x8931 /* Multicast address lists */ 060: #define SIOCDELMULTI 0x8932 061: #define SIOCGIFINDEX 0x8933 /* name -> if_index mapping */ 062: #define SIOGIFINDEX SIOCGIFINDEX /* misprint compatibility :-) */ 063: #define SIOCSIFPFLAGS 0x8934 /* set/get extended flags set */ 064: #define SIOCGIFPFLAGS 0x8935 065: #define SIOCDIFADDR 0x8936 /* delete PA address */ 066: #define SIOCSIFHWBROADCAST 0x8937 /* set hardware broadcast addr */ 067: #define SIOCGIFCOUNT 0x8938 /* get number of devices */ 068: 069: #define SIOCGIFBR 0x8940 /* Bridging support */ 070: #define SIOCSIFBR 0x8941 /* Set bridging options */ 071: 072: #define SIOCGIFTXQLEN 0x8942 /* Get the tx queue length */ 073: #define SIOCSIFTXQLEN 0x8943 /* Set the tx queue length */ 074: 075: /* SIOCGIFDIVERT was: 0x8944 Frame diversion support */ 076: /* SIOCSIFDIVERT was: 0x8945 Set frame diversion options */ 077: 078: #define SIOCETHTOOL 0x8946 /* Ethtool interface */ 079: 080: #define SIOCGMIIPHY 0x8947 /* Get address of MII PHY in use. */ 081: #define SIOCGMIIREG 0x8948 /* Read MII PHY register. */ 082: #define SIOCSMIIREG 0x8949 /* Write MII PHY register. */ 083: 084: #define SIOCWANDEV 0x894A /* get/set netdev parameters */ 085: 086: #define SIOCOUTQNSD 0x894B /* output queue size (not sent only) */ 087: 088: /* ARP cache control calls. */ 089: /* 0x8950 - 0x8952 * obsolete calls, don't re-use */ 090: #define SIOCDARP 0x8953 /* delete ARP table entry */ 091: #define SIOCGARP 0x8954 /* get ARP table entry */ 092: #define SIOCSARP 0x8955 /* set ARP table entry */ 093: 094: /* RARP cache control calls. */ 095: #define SIOCDRARP 0x8960 /* delete RARP table entry */ 096: #define SIOCGRARP 0x8961 /* get RARP table entry */ 097: #define SIOCSRARP 0x8962 /* set RARP table entry */ 098: 099: /* Driver configuration calls */ 100: 101: #define SIOCGIFMAP 0x8970 /* Get device parameters */ 102: #define SIOCSIFMAP 0x8971 /* Set device parameters */ 103: 104: /* DLCI configuration calls */ 105: 106: #define SIOCADDDLCI 0x8980 /* Create new DLCI device */ 107: #define SIOCDELDLCI 0x8981 /* Delete DLCI device */ 108: 109: #define SIOCGIFVLAN 0x8982 /* 802.1Q VLAN support */ 110: #define SIOCSIFVLAN 0x8983 /* Set 802.1Q VLAN options */ 111: 112: /* bonding calls */ 113: 114: #define SIOCBONDENSLAVE 0x8990 /* enslave a device to the bond */ 115: #define SIOCBONDRELEASE 0x8991 /* release a slave from the bond*/ 116: #define SIOCBONDSETHWADDR 0x8992 /* set the hw addr of the bond */ 117: #define SIOCBONDSLAVEINFOQUERY 0x8993 /* rtn info about slave state */ 118: #define SIOCBONDINFOQUERY 0x8994 /* rtn info about bond state */ 119: #define SIOCBONDCHANGEACTIVE 0x8995 /* update to a new active slave */ 120: 121: /* bridge calls */ 122: #define SIOCBRADDBR 0x89a0 /* create new bridge device */ 123: #define SIOCBRDELBR 0x89a1 /* remove bridge device */ 124: #define SIOCBRADDIF 0x89a2 /* add interface to bridge */ 125: #define SIOCBRDELIF 0x89a3 /* remove interface from bridge */ 126: 127: /* hardware time stamping: parameters in linux/net_tstamp.h */ 128: #define SIOCSHWTSTAMP 0x89b0 129: 130: /* Device private ioctl calls */ 131: 132: /* 133: * These 16 ioctls are available to devices via the do_ioctl() device 134: * vector. Each device should include this file and redefine these names 135: * as their own. Because these are device dependent it is a good idea 136: * _NOT_ to issue them to random objects and hope. 137: * 138: * THESE IOCTLS ARE _DEPRECATED_ AND WILL DISAPPEAR IN 2.5.X -DaveM 139: */ 140: 141: #define SIOCDEVPRIVATE 0x89F0 /* to 89FF */ 142: 143: /* 144: * These 16 ioctl calls are protocol private 145: */ 146: 147: #define SIOCPROTOPRIVATE 0x89E0 /* to 89EF */ 148: #endif /* _LINUX_SOCKIOS_H */ 149: