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 /* This section will go away soon! */ 22 #if 1 /* FIXME: */ 23 #define MAX_IP_NAME 20 24 #define IP_SET_DEV 0x2401 25 26 struct ip_config { 27 char name[MAX_IP_NAME]; 28 unsigned long paddr; 29 unsigned long router; 30 unsigned long net; 31 unsigned up:1,destroy:1; 32 }; 33 #endif /* FIXME: */ 34 35 /* Socket-level I/O control calls. */ 36 #define FIOSETOWN 0x8901 37 #define SIOCSPGRP 0x8902 38 #define FIOGETOWN 0x8903 39 #define SIOCGPGRP 0x8904 40 #define SIOCATMARK 0x8905 41 42 /* Routing table calls. */ 43 #define SIOCADDRT 0x890B /* add routing table entry */ 44 #define SIOCDELRT 0x890C /* delete routing table entry */ 45 46 /* Socket configuration controls. */ 47 #define SIOCGIFNAME 0x8910 /* get iface name */ 48 #define SIOCSIFLINK 0x8911 /* set iface channel */ 49 #define SIOCGIFCONF 0x8912 /* get iface list */ 50 #define SIOCGIFFLAGS 0x8913 /* get flags */ 51 #define SIOCSIFFLAGS 0x8914 /* set flags */ 52 #define SIOCGIFADDR 0x8915 /* get PA address */ 53 #define SIOCSIFADDR 0x8916 /* set PA address */ 54 #define SIOCGIFDSTADDR 0x8917 /* get remote PA address */ 55 #define SIOCSIFDSTADDR 0x8918 /* set remote PA address */ 56 #define SIOCGIFBRDADDR 0x8919 /* get broadcast PA address */ 57 #define SIOCSIFBRDADDR 0x891a /* set broadcast PA address */ 58 #define SIOCGIFNETMASK 0x891b /* get network PA mask */ 59 #define SIOCSIFNETMASK 0x891c /* set network PA mask */ 60 #define SIOCGIFMETRIC 0x891d /* get metric */ 61 #define SIOCSIFMETRIC 0x891e /* set metric */ 62 #define SIOCGIFMEM 0x891f /* get memory address (BSD) */ 63 #define SIOCSIFMEM 0x8920 /* set memory address (BSD) */ 64 #define SIOCGIFMTU 0x8921 /* get MTU size */ 65 #define SIOCSIFMTU 0x8922 /* set MTU size */ 66 #define SIOCGIFHWADDR 0x8923 /* get hardware address */ 67 #define SIOCSIFHWADDR 0x8924 /* set hardware address (NI) */ 68 #define SIOCGIFENCAP 0x8925 /* get/set slip encapsulation */ 69 #define SIOCSIFENCAP 0x8926 70 71 /* Routing table calls (oldrtent - don't use) */ 72 #define SIOCADDRTOLD 0x8940 /* add routing table entry */ 73 #define SIOCDELRTOLD 0x8941 /* delete routing table entry */ 74 75 /* ARP cache control calls. */ 76 #define SIOCDARP 0x8950 /* delete ARP table entry */ 77 #define SIOCGARP 0x8951 /* get ARP table entry */ 78 #define SIOCSARP 0x8952 /* set ARP table entry */ 79 80 #endif /* _LINUX_SOCKIOS_H */