/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
/*
* INET An implementation of the TCP / IP protocol suite for the LINUX
* operating system . INET is implemented using the BSD Socket
* interface as the means of communication with the user level .
*
* Definitions of the socket - level I / O control calls .
*
* Version : @ ( # ) sockios . h 1 . 0 . 2 03 / 09 / 93
*
* Authors : Ross Biro
* Fred N . van Kempen , < waltje @ uWalt . NL . Mugnet . ORG >
*
* This program is free software ; you can redistribute it and / or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation ; either version
* 2 of the License , or ( at your option ) any later version .
*/
#ifndef _LINUX_SOCKIOS_H
#define _LINUX_SOCKIOS_H
#include <asm /bitsperlong.h>
#include <asm /sockios.h>
/* Linux-specific socket ioctls */
#define SIOCINQ FIONREAD
#define SIOCOUTQ TIOCOUTQ /* output queue size (not sent + not acked) */
#define SOCK_IOC_TYPE 0 x89
/*
* the timeval / timespec data structure layout is defined by libc ,
* so we need to cover both possible versions on 32 - bit .
*/
/* Get stamp (timeval) */
#define SIOCGSTAMP_NEW _IOR(SOCK_IOC_TYPE, 0 x06, long long [2 ])
/* Get stamp (timespec) */
#define SIOCGSTAMPNS_NEW _IOR(SOCK_IOC_TYPE, 0 x07, long long [2 ])
#if __BITS_PER_LONG == 64 || (defined (__x86_64__) && defined (__ILP32__))
/* on 64-bit and x32, avoid the ?: operator */
#define SIOCGSTAMP SIOCGSTAMP_OLD
#define SIOCGSTAMPNS SIOCGSTAMPNS_OLD
#else
#define SIOCGSTAMP ((sizeof (struct timeval)) == 8 ? \
SIOCGSTAMP_OLD : SIOCGSTAMP_NEW)
#define SIOCGSTAMPNS ((sizeof (struct timespec)) == 8 ? \
SIOCGSTAMPNS_OLD : SIOCGSTAMPNS_NEW)
#endif
/* Routing table calls. */
#define SIOCADDRT 0 x890B /* add routing table entry */
#define SIOCDELRT 0 x890C /* delete routing table entry */
#define SIOCRTMSG 0 x890D /* unused */
/* Socket configuration controls. */
#define SIOCGIFNAME 0 x8910 /* get iface name */
#define SIOCSIFLINK 0 x8911 /* set iface channel */
#define SIOCGIFCONF 0 x8912 /* get iface list */
#define SIOCGIFFLAGS 0 x8913 /* get flags */
#define SIOCSIFFLAGS 0 x8914 /* set flags */
#define SIOCGIFADDR 0 x8915 /* get PA address */
#define SIOCSIFADDR 0 x8916 /* set PA address */
#define SIOCGIFDSTADDR 0 x8917 /* get remote PA address */
#define SIOCSIFDSTADDR 0 x8918 /* set remote PA address */
#define SIOCGIFBRDADDR 0 x8919 /* get broadcast PA address */
#define SIOCSIFBRDADDR 0 x891a /* set broadcast PA address */
#define SIOCGIFNETMASK 0 x891b /* get network PA mask */
#define SIOCSIFNETMASK 0 x891c /* set network PA mask */
#define SIOCGIFMETRIC 0 x891d /* get metric */
#define SIOCSIFMETRIC 0 x891e /* set metric */
#define SIOCGIFMEM 0 x891f /* get memory address (BSD) */
#define SIOCSIFMEM 0 x8920 /* set memory address (BSD) */
#define SIOCGIFMTU 0 x8921 /* get MTU size */
#define SIOCSIFMTU 0 x8922 /* set MTU size */
#define SIOCSIFNAME 0 x8923 /* set interface name */
#define SIOCSIFHWADDR 0 x8924 /* set hardware address */
#define SIOCGIFENCAP 0 x8925 /* get/set encapsulations */
#define SIOCSIFENCAP 0 x8926
#define SIOCGIFHWADDR 0 x8927 /* Get hardware address */
#define SIOCGIFSLAVE 0 x8929 /* Driver slaving support */
#define SIOCSIFSLAVE 0 x8930
#define SIOCADDMULTI 0 x8931 /* Multicast address lists */
#define SIOCDELMULTI 0 x8932
#define SIOCGIFINDEX 0 x8933 /* name -> if_index mapping */
#define SIOGIFINDEX SIOCGIFINDEX /* misprint compatibility :-) */
#define SIOCSIFPFLAGS 0 x8934 /* set/get extended flags set */
#define SIOCGIFPFLAGS 0 x8935
#define SIOCDIFADDR 0 x8936 /* delete PA address */
#define SIOCSIFHWBROADCAST 0 x8937 /* set hardware broadcast addr */
#define SIOCGIFCOUNT 0 x8938 /* get number of devices */
#define SIOCGIFBR 0 x8940 /* Bridging support */
#define SIOCSIFBR 0 x8941 /* Set bridging options */
#define SIOCGIFTXQLEN 0 x8942 /* Get the tx queue length */
#define SIOCSIFTXQLEN 0 x8943 /* Set the tx queue length */
/* SIOCGIFDIVERT was: 0x8944 Frame diversion support */
/* SIOCSIFDIVERT was: 0x8945 Set frame diversion options */
#define SIOCETHTOOL 0 x8946 /* Ethtool interface */
#define SIOCGMIIPHY 0 x8947 /* Get address of MII PHY in use. */
#define SIOCGMIIREG 0 x8948 /* Read MII PHY register. */
#define SIOCSMIIREG 0 x8949 /* Write MII PHY register. */
#define SIOCWANDEV 0 x894A /* get/set netdev parameters */
#define SIOCOUTQNSD 0 x894B /* output queue size (not sent only) */
#define SIOCGSKNS 0 x894C /* get socket network namespace */
/* ARP cache control calls. */
/* 0x8950 - 0x8952 * obsolete calls, don't re-use */
#define SIOCDARP 0 x8953 /* delete ARP table entry */
#define SIOCGARP 0 x8954 /* get ARP table entry */
#define SIOCSARP 0 x8955 /* set ARP table entry */
/* RARP cache control calls. */
#define SIOCDRARP 0 x8960 /* delete RARP table entry */
#define SIOCGRARP 0 x8961 /* get RARP table entry */
#define SIOCSRARP 0 x8962 /* set RARP table entry */
/* Driver configuration calls */
#define SIOCGIFMAP 0 x8970 /* Get device parameters */
#define SIOCSIFMAP 0 x8971 /* Set device parameters */
/* DLCI configuration calls */
#define SIOCADDDLCI 0 x8980 /* Create new DLCI device */
#define SIOCDELDLCI 0 x8981 /* Delete DLCI device */
#define SIOCGIFVLAN 0 x8982 /* 802.1Q VLAN support */
#define SIOCSIFVLAN 0 x8983 /* Set 802.1Q VLAN options */
/* bonding calls */
#define SIOCBONDENSLAVE 0 x8990 /* enslave a device to the bond */
#define SIOCBONDRELEASE 0 x8991 /* release a slave from the bond*/
#define SIOCBONDSETHWADDR 0 x8992 /* set the hw addr of the bond */
#define SIOCBONDSLAVEINFOQUERY 0 x8993 /* rtn info about slave state */
#define SIOCBONDINFOQUERY 0 x8994 /* rtn info about bond state */
#define SIOCBONDCHANGEACTIVE 0 x8995 /* update to a new active slave */
/* bridge calls */
#define SIOCBRADDBR 0 x89a0 /* create new bridge device */
#define SIOCBRDELBR 0 x89a1 /* remove bridge device */
#define SIOCBRADDIF 0 x89a2 /* add interface to bridge */
#define SIOCBRDELIF 0 x89a3 /* remove interface from bridge */
/* hardware time stamping: parameters in linux/net_tstamp.h */
#define SIOCSHWTSTAMP 0 x89b0 /* set and get config */
#define SIOCGHWTSTAMP 0 x89b1 /* get config */
/* Device private ioctl calls */
/*
* These 16 ioctls are available to devices via the do_ioctl ( ) device
* vector . Each device should include this file and redefine these names
* as their own . Because these are device dependent it is a good idea
* _ NOT_ to issue them to random objects and hope .
*
* THESE IOCTLS ARE _ DEPRECATED_ AND WILL DISAPPEAR IN 2 . 5 . X - DaveM
*/
#define SIOCDEVPRIVATE 0 x89F0 /* to 89FF */
/*
* These 16 ioctl calls are protocol private
*/
#define SIOCPROTOPRIVATE 0 x89E0 /* to 89EF */
#endif /* _LINUX_SOCKIOS_H */
Messung V0.5 in Prozent C=79 H=92 G=85
¤ Dauer der Verarbeitung: 0.8 Sekunden
(vorverarbeitet am 2026-09-28)
¤
*© Formatika GbR, Deutschland