June 2025 | ||||||
Mo | Tu | We | Th | Fr | Sa | Su |
26 | 27 | 28 | 29 | 30 | 31 | 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 |
001: /* Copyright (C) 1996, 1997, 1998, 2003 Free Software Foundation, Inc. 002: This file is part of the GNU C Library. 003: 004: The GNU C Library is free software; you can redistribute it and/or 005: modify it under the terms of the GNU Lesser General Public 006: License as published by the Free Software Foundation; either 007: version 2.1 of the License, or (at your option) any later version. 008: 009: The GNU C Library is distributed in the hope that it will be useful, 010: but WITHOUT ANY WARRANTY; without even the implied warranty of 011: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012: Lesser General Public License for more details. 013: 014: You should have received a copy of the GNU Lesser General Public 015: License along with the GNU C Library; if not, write to the Free 016: Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 017: 02111-1307 USA. */ 018: 019: #ifndef _SYS_IOCTL_H 020: # error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead." 021: #endif 022: 023: /* Use the definitions from the kernel header files. */ 024: #include <asm/ioctls.h> 025: 026: /* Routing table calls. */ 027: #define SIOCADDRT 0x890B /* add routing table entry */ 028: #define SIOCDELRT 0x890C /* delete routing table entry */ 029: #define SIOCRTMSG 0x890D /* call to routing system */ 030: 031: /* Socket configuration controls. */ 032: #define SIOCGIFNAME 0x8910 /* get iface name */ 033: #define SIOCSIFLINK 0x8911 /* set iface channel */ 034: #define SIOCGIFCONF 0x8912 /* get iface list */ 035: #define SIOCGIFFLAGS 0x8913 /* get flags */ 036: #define SIOCSIFFLAGS 0x8914 /* set flags */ 037: #define SIOCGIFADDR 0x8915 /* get PA address */ 038: #define SIOCSIFADDR 0x8916 /* set PA address */ 039: #define SIOCGIFDSTADDR 0x8917 /* get remote PA address */ 040: #define SIOCSIFDSTADDR 0x8918 /* set remote PA address */ 041: #define SIOCGIFBRDADDR 0x8919 /* get broadcast PA address */ 042: #define SIOCSIFBRDADDR 0x891a /* set broadcast PA address */ 043: #define SIOCGIFNETMASK 0x891b /* get network PA mask */ 044: #define SIOCSIFNETMASK 0x891c /* set network PA mask */ 045: #define SIOCGIFMETRIC 0x891d /* get metric */ 046: #define SIOCSIFMETRIC 0x891e /* set metric */ 047: #define SIOCGIFMEM 0x891f /* get memory address (BSD) */ 048: #define SIOCSIFMEM 0x8920 /* set memory address (BSD) */ 049: #define SIOCGIFMTU 0x8921 /* get MTU size */ 050: #define SIOCSIFMTU 0x8922 /* set MTU size */ 051: #define SIOCSIFNAME 0x8923 /* set interface name */ 052: #define SIOCSIFHWADDR 0x8924 /* set hardware address */ 053: #define SIOCGIFENCAP 0x8925 /* get/set encapsulations */ 054: #define SIOCSIFENCAP 0x8926 055: #define SIOCGIFHWADDR 0x8927 /* Get hardware address */ 056: #define SIOCGIFSLAVE 0x8929 /* Driver slaving support */ 057: #define SIOCSIFSLAVE 0x8930 058: #define SIOCADDMULTI 0x8931 /* Multicast address lists */ 059: #define SIOCDELMULTI 0x8932 060: #define SIOCGIFINDEX 0x8933 /* name -> if_index mapping */ 061: #define SIOGIFINDEX SIOCGIFINDEX /* misprint compatibility :-) */ 062: #define SIOCSIFPFLAGS 0x8934 /* set/get extended flags set */ 063: #define SIOCGIFPFLAGS 0x8935 064: #define SIOCDIFADDR 0x8936 /* delete PA address */ 065: #define SIOCSIFHWBROADCAST 0x8937 /* set hardware broadcast addr */ 066: #define SIOCGIFCOUNT 0x8938 /* get number of devices */ 067: 068: #define SIOCGIFBR 0x8940 /* Bridging support */ 069: #define SIOCSIFBR 0x8941 /* Set bridging options */ 070: 071: #define SIOCGIFTXQLEN 0x8942 /* Get the tx queue length */ 072: #define SIOCSIFTXQLEN 0x8943 /* Set the tx queue length */ 073: 074: 075: /* ARP cache control calls. */ 076: /* 0x8950 - 0x8952 * obsolete calls, don't re-use */ 077: #define SIOCDARP 0x8953 /* delete ARP table entry */ 078: #define SIOCGARP 0x8954 /* get ARP table entry */ 079: #define SIOCSARP 0x8955 /* set ARP table entry */ 080: 081: /* RARP cache control calls. */ 082: #define SIOCDRARP 0x8960 /* delete RARP table entry */ 083: #define SIOCGRARP 0x8961 /* get RARP table entry */ 084: #define SIOCSRARP 0x8962 /* set RARP table entry */ 085: 086: /* Driver configuration calls */ 087: 088: #define SIOCGIFMAP 0x8970 /* Get device parameters */ 089: #define SIOCSIFMAP 0x8971 /* Set device parameters */ 090: 091: /* DLCI configuration calls */ 092: 093: #define SIOCADDDLCI 0x8980 /* Create new DLCI device */ 094: #define SIOCDELDLCI 0x8981 /* Delete DLCI device */ 095: 096: /* Device private ioctl calls. */ 097: 098: /* These 16 ioctls are available to devices via the do_ioctl() device 099: vector. Each device should include this file and redefine these 100: names as their own. Because these are device dependent it is a good 101: idea _NOT_ to issue them to random objects and hope. */ 102: 103: #define SIOCDEVPRIVATE 0x89F0 /* to 89FF */ 104: 105: /* 106: * These 16 ioctl calls are protocol private 107: */ 108: 109: #define SIOCPROTOPRIVATE 0x89E0 /* to 89EF */ 110: