Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: sockios.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* INET An implementation of the TCP/IP protocol suite for the LINUX
[2] Fix | Delete
* operating system. INET is implemented using the BSD Socket
[3] Fix | Delete
* interface as the means of communication with the user level.
[4] Fix | Delete
*
[5] Fix | Delete
* Definitions of the socket-level I/O control calls.
[6] Fix | Delete
*
[7] Fix | Delete
* Version: @(#)sockios.h 1.0.2 03/09/93
[8] Fix | Delete
*
[9] Fix | Delete
* Authors: Ross Biro
[10] Fix | Delete
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
[11] Fix | Delete
*
[12] Fix | Delete
* This program is free software; you can redistribute it and/or
[13] Fix | Delete
* modify it under the terms of the GNU General Public License
[14] Fix | Delete
* as published by the Free Software Foundation; either version
[15] Fix | Delete
* 2 of the License, or (at your option) any later version.
[16] Fix | Delete
*/
[17] Fix | Delete
#ifndef _LINUX_SOCKIOS_H
[18] Fix | Delete
#define _LINUX_SOCKIOS_H
[19] Fix | Delete
[20] Fix | Delete
#include <asm/sockios.h>
[21] Fix | Delete
[22] Fix | Delete
/* Linux-specific socket ioctls */
[23] Fix | Delete
#define SIOCINQ FIONREAD
[24] Fix | Delete
#define SIOCOUTQ TIOCOUTQ /* output queue size (not sent + not acked) */
[25] Fix | Delete
[26] Fix | Delete
#define SOCK_IOC_TYPE 0x89
[27] Fix | Delete
[28] Fix | Delete
/* Routing table calls. */
[29] Fix | Delete
#define SIOCADDRT 0x890B /* add routing table entry */
[30] Fix | Delete
#define SIOCDELRT 0x890C /* delete routing table entry */
[31] Fix | Delete
#define SIOCRTMSG 0x890D /* unused */
[32] Fix | Delete
[33] Fix | Delete
/* Socket configuration controls. */
[34] Fix | Delete
#define SIOCGIFNAME 0x8910 /* get iface name */
[35] Fix | Delete
#define SIOCSIFLINK 0x8911 /* set iface channel */
[36] Fix | Delete
#define SIOCGIFCONF 0x8912 /* get iface list */
[37] Fix | Delete
#define SIOCGIFFLAGS 0x8913 /* get flags */
[38] Fix | Delete
#define SIOCSIFFLAGS 0x8914 /* set flags */
[39] Fix | Delete
#define SIOCGIFADDR 0x8915 /* get PA address */
[40] Fix | Delete
#define SIOCSIFADDR 0x8916 /* set PA address */
[41] Fix | Delete
#define SIOCGIFDSTADDR 0x8917 /* get remote PA address */
[42] Fix | Delete
#define SIOCSIFDSTADDR 0x8918 /* set remote PA address */
[43] Fix | Delete
#define SIOCGIFBRDADDR 0x8919 /* get broadcast PA address */
[44] Fix | Delete
#define SIOCSIFBRDADDR 0x891a /* set broadcast PA address */
[45] Fix | Delete
#define SIOCGIFNETMASK 0x891b /* get network PA mask */
[46] Fix | Delete
#define SIOCSIFNETMASK 0x891c /* set network PA mask */
[47] Fix | Delete
#define SIOCGIFMETRIC 0x891d /* get metric */
[48] Fix | Delete
#define SIOCSIFMETRIC 0x891e /* set metric */
[49] Fix | Delete
#define SIOCGIFMEM 0x891f /* get memory address (BSD) */
[50] Fix | Delete
#define SIOCSIFMEM 0x8920 /* set memory address (BSD) */
[51] Fix | Delete
#define SIOCGIFMTU 0x8921 /* get MTU size */
[52] Fix | Delete
#define SIOCSIFMTU 0x8922 /* set MTU size */
[53] Fix | Delete
#define SIOCSIFNAME 0x8923 /* set interface name */
[54] Fix | Delete
#define SIOCSIFHWADDR 0x8924 /* set hardware address */
[55] Fix | Delete
#define SIOCGIFENCAP 0x8925 /* get/set encapsulations */
[56] Fix | Delete
#define SIOCSIFENCAP 0x8926
[57] Fix | Delete
#define SIOCGIFHWADDR 0x8927 /* Get hardware address */
[58] Fix | Delete
#define SIOCGIFSLAVE 0x8929 /* Driver slaving support */
[59] Fix | Delete
#define SIOCSIFSLAVE 0x8930
[60] Fix | Delete
#define SIOCADDMULTI 0x8931 /* Multicast address lists */
[61] Fix | Delete
#define SIOCDELMULTI 0x8932
[62] Fix | Delete
#define SIOCGIFINDEX 0x8933 /* name -> if_index mapping */
[63] Fix | Delete
#define SIOGIFINDEX SIOCGIFINDEX /* misprint compatibility :-) */
[64] Fix | Delete
#define SIOCSIFPFLAGS 0x8934 /* set/get extended flags set */
[65] Fix | Delete
#define SIOCGIFPFLAGS 0x8935
[66] Fix | Delete
#define SIOCDIFADDR 0x8936 /* delete PA address */
[67] Fix | Delete
#define SIOCSIFHWBROADCAST 0x8937 /* set hardware broadcast addr */
[68] Fix | Delete
#define SIOCGIFCOUNT 0x8938 /* get number of devices */
[69] Fix | Delete
[70] Fix | Delete
#define SIOCGIFBR 0x8940 /* Bridging support */
[71] Fix | Delete
#define SIOCSIFBR 0x8941 /* Set bridging options */
[72] Fix | Delete
[73] Fix | Delete
#define SIOCGIFTXQLEN 0x8942 /* Get the tx queue length */
[74] Fix | Delete
#define SIOCSIFTXQLEN 0x8943 /* Set the tx queue length */
[75] Fix | Delete
[76] Fix | Delete
/* SIOCGIFDIVERT was: 0x8944 Frame diversion support */
[77] Fix | Delete
/* SIOCSIFDIVERT was: 0x8945 Set frame diversion options */
[78] Fix | Delete
[79] Fix | Delete
#define SIOCETHTOOL 0x8946 /* Ethtool interface */
[80] Fix | Delete
[81] Fix | Delete
#define SIOCGMIIPHY 0x8947 /* Get address of MII PHY in use. */
[82] Fix | Delete
#define SIOCGMIIREG 0x8948 /* Read MII PHY register. */
[83] Fix | Delete
#define SIOCSMIIREG 0x8949 /* Write MII PHY register. */
[84] Fix | Delete
[85] Fix | Delete
#define SIOCWANDEV 0x894A /* get/set netdev parameters */
[86] Fix | Delete
[87] Fix | Delete
#define SIOCOUTQNSD 0x894B /* output queue size (not sent only) */
[88] Fix | Delete
#define SIOCGSKNS 0x894C /* get socket network namespace */
[89] Fix | Delete
[90] Fix | Delete
/* ARP cache control calls. */
[91] Fix | Delete
/* 0x8950 - 0x8952 * obsolete calls, don't re-use */
[92] Fix | Delete
#define SIOCDARP 0x8953 /* delete ARP table entry */
[93] Fix | Delete
#define SIOCGARP 0x8954 /* get ARP table entry */
[94] Fix | Delete
#define SIOCSARP 0x8955 /* set ARP table entry */
[95] Fix | Delete
[96] Fix | Delete
/* RARP cache control calls. */
[97] Fix | Delete
#define SIOCDRARP 0x8960 /* delete RARP table entry */
[98] Fix | Delete
#define SIOCGRARP 0x8961 /* get RARP table entry */
[99] Fix | Delete
#define SIOCSRARP 0x8962 /* set RARP table entry */
[100] Fix | Delete
[101] Fix | Delete
/* Driver configuration calls */
[102] Fix | Delete
[103] Fix | Delete
#define SIOCGIFMAP 0x8970 /* Get device parameters */
[104] Fix | Delete
#define SIOCSIFMAP 0x8971 /* Set device parameters */
[105] Fix | Delete
[106] Fix | Delete
/* DLCI configuration calls */
[107] Fix | Delete
[108] Fix | Delete
#define SIOCADDDLCI 0x8980 /* Create new DLCI device */
[109] Fix | Delete
#define SIOCDELDLCI 0x8981 /* Delete DLCI device */
[110] Fix | Delete
[111] Fix | Delete
#define SIOCGIFVLAN 0x8982 /* 802.1Q VLAN support */
[112] Fix | Delete
#define SIOCSIFVLAN 0x8983 /* Set 802.1Q VLAN options */
[113] Fix | Delete
[114] Fix | Delete
/* bonding calls */
[115] Fix | Delete
[116] Fix | Delete
#define SIOCBONDENSLAVE 0x8990 /* enslave a device to the bond */
[117] Fix | Delete
#define SIOCBONDRELEASE 0x8991 /* release a slave from the bond*/
[118] Fix | Delete
#define SIOCBONDSETHWADDR 0x8992 /* set the hw addr of the bond */
[119] Fix | Delete
#define SIOCBONDSLAVEINFOQUERY 0x8993 /* rtn info about slave state */
[120] Fix | Delete
#define SIOCBONDINFOQUERY 0x8994 /* rtn info about bond state */
[121] Fix | Delete
#define SIOCBONDCHANGEACTIVE 0x8995 /* update to a new active slave */
[122] Fix | Delete
[123] Fix | Delete
/* bridge calls */
[124] Fix | Delete
#define SIOCBRADDBR 0x89a0 /* create new bridge device */
[125] Fix | Delete
#define SIOCBRDELBR 0x89a1 /* remove bridge device */
[126] Fix | Delete
#define SIOCBRADDIF 0x89a2 /* add interface to bridge */
[127] Fix | Delete
#define SIOCBRDELIF 0x89a3 /* remove interface from bridge */
[128] Fix | Delete
[129] Fix | Delete
/* hardware time stamping: parameters in linux/net_tstamp.h */
[130] Fix | Delete
#define SIOCSHWTSTAMP 0x89b0 /* set and get config */
[131] Fix | Delete
#define SIOCGHWTSTAMP 0x89b1 /* get config */
[132] Fix | Delete
[133] Fix | Delete
/* Device private ioctl calls */
[134] Fix | Delete
[135] Fix | Delete
/*
[136] Fix | Delete
* These 16 ioctls are available to devices via the do_ioctl() device
[137] Fix | Delete
* vector. Each device should include this file and redefine these names
[138] Fix | Delete
* as their own. Because these are device dependent it is a good idea
[139] Fix | Delete
* _NOT_ to issue them to random objects and hope.
[140] Fix | Delete
*
[141] Fix | Delete
* THESE IOCTLS ARE _DEPRECATED_ AND WILL DISAPPEAR IN 2.5.X -DaveM
[142] Fix | Delete
*/
[143] Fix | Delete
[144] Fix | Delete
#define SIOCDEVPRIVATE 0x89F0 /* to 89FF */
[145] Fix | Delete
[146] Fix | Delete
/*
[147] Fix | Delete
* These 16 ioctl calls are protocol private
[148] Fix | Delete
*/
[149] Fix | Delete
[150] Fix | Delete
#define SIOCPROTOPRIVATE 0x89E0 /* to 89EF */
[151] Fix | Delete
#endif /* _LINUX_SOCKIOS_H */
[152] Fix | Delete
[153] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function