xref: /haiku/headers/posix/sys/sockio.h (revision 9760dcae2038d47442f4658c2575844c6cf92c40)
1 /*
2  * Copyright 2002-2007, Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _SYS_SOCKIO_H
6 #define _SYS_SOCKIO_H
7 
8 
9 #define SIOCADDRT			8900	/* add route */
10 #define SIOCDELRT			8901	/* delete route */
11 #define SIOCSIFADDR			8902	/* set interface address */
12 #define SIOCGIFADDR			8903	/* get interface address */
13 #define SIOCSIFDSTADDR		8904	/* set point-to-point address */
14 #define SIOCGIFDSTADDR		8905	/* get point-to-point address */
15 #define SIOCSIFFLAGS		8906	/* set interface flags */
16 #define SIOCGIFFLAGS		8907	/* get interface flags */
17 #define SIOCGIFBRDADDR		8908	/* get broadcast address */
18 #define SIOCSIFBRDADDR		8909	/* set broadcast address */
19 #define SIOCGIFCOUNT		8910	/* count interfaces */
20 #define SIOCGIFCONF			8911	/* get interface list */
21 #define SIOCGIFINDEX		8912	/* interface name -> index */
22 #define SIOCGIFNAME			8913	/* interface index -> name */
23 #define SIOCGIFNETMASK		8914	/* get net address mask */
24 #define SIOCSIFNETMASK		8915	/* set net address mask */
25 #define SIOCGIFMETRIC		8916	/* get interface metric */
26 #define SIOCSIFMETRIC		8917	/* set interface metric */
27 #define SIOCDIFADDR			8918	/* delete interface address */
28 #define SIOCAIFADDR			8919	/* configure interface alias */
29 #define SIOCADDMULTI		8920	/* add multicast address */
30 #define SIOCDELMULTI		8921	/* delete multicast address */
31 #define SIOCGIFMTU			8922	/* get interface MTU */
32 #define SIOCSIFMTU			8923	/* set interface MTU */
33 #define SIOCSIFMEDIA		8924	/* set net media */
34 #define SIOCGIFMEDIA		8925	/* get net media */
35 
36 #define SIOCGRTSIZE			8926	/* get route table size */
37 #define SIOCGRTTABLE		8927	/* get route table */
38 #define SIOCGETRT			8928	/* get route information for destination */
39 
40 #define SIOCGIFSTATS		8929	/* get interface stats */
41 #define SIOCGIFPARAM		8930	/* get interface parameter */
42 #define SIOCGIFTYPE			8931	/* get interface type */
43 
44 #define SIOCSPACKETCAP		8932	/* Start capturing packets on an interface */
45 #define SIOCCPACKETCAP		8933	/* Stop capturing packets on an interface */
46 
47 #define SIOCSHIWAT			8934	/* set high watermark */
48 #define SIOCGHIWAT			8935	/* get high watermark */
49 #define SIOCSLOWAT			8936	/* set low watermark */
50 #define SIOCGLOWAT			8937	/* get low watermark */
51 #define SIOCATMARK			8938	/* at out-of-band mark? */
52 #define SIOCSPGRP			8939	/* set process group */
53 #define SIOCGPGRP			8940	/* get process group */
54 
55 #define SIOCGPRIVATE_0		8941	/* device private 0 */
56 #define SIOCGPRIVATE_1		8942	/* device private 1 */
57 #define SIOCSDRVSPEC		8943	/* set driver-specific parameters */
58 #define SIOCGDRVSPEC		8944	/* get driver-specific parameters */
59 
60 #define SIOCSIFGENERIC		8945	/* generic IF set op */
61 #define SIOCGIFGENERIC		8946	/* generic IF get op */
62 
63 #define SIOCEND				9000	/* SIOCEND >= highest SIOC* */
64 
65 #endif	/* _SYS_SOCKIO_H */
66