xref: /haiku/headers/posix/sys/sockio.h (revision bc3955fea5b07e2e94a27fc05e4bb58fe6f0319b)
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 enum {
10 	SIOCADDRT = 8900,	/* add route */
11 	SIOCDELRT,			/* delete route */
12 	SIOCSIFADDR,		/* set interface address */
13 	SIOCGIFADDR,		/* get interface address */
14 	SIOCSIFDSTADDR,		/* set point-to-point address */
15 	SIOCGIFDSTADDR,		/* get point-to-point address */
16 	SIOCSIFFLAGS,		/* set interface flags */
17 	SIOCGIFFLAGS,		/* get interface flags */
18 	SIOCGIFBRDADDR,		/* get broadcast address */
19 	SIOCSIFBRDADDR,		/* set broadcast address */
20 	SIOCGIFCOUNT,		/* count interfaces */
21 	SIOCGIFCONF,		/* get interface list */
22 	SIOCGIFINDEX,		/* interface name -> index */
23 	SIOCGIFNAME,		/* interface index -> name */
24 	SIOCGIFNETMASK,		/* get net address mask */
25 	SIOCSIFNETMASK,		/* set net address mask */
26 	SIOCGIFMETRIC,		/* get interface metric */
27 	SIOCSIFMETRIC,		/* set interface metric */
28 	SIOCDIFADDR,		/* delete interface address */
29 	SIOCAIFADDR,		/* configure interface alias */
30 	SIOCADDMULTI,		/* add multicast address */
31 	SIOCDELMULTI,		/* delete multicast address */
32 	SIOCGIFMTU,			/* get interface MTU */
33 	SIOCSIFMTU,			/* set interface MTU */
34 	SIOCSIFMEDIA,		/* set net media */
35 	SIOCGIFMEDIA,		/* get net media */
36 
37 	SIOCGRTSIZE,		/* get route table size */
38 	SIOCGRTTABLE,		/* get route table */
39 	SIOCGETRT,			/* get route information for destination */
40 
41 	SIOCGIFSTATS,		/* get interface stats */
42 	SIOCGIFPARAM,		/* get interface parameter */
43 	SIOCGIFTYPE,		/* get interface type */
44 
45 	SIOCSPACKETCAP,		/* Start capturing packets on an interface */
46 	SIOCCPACKETCAP,		/* Stop capturing packets on an interface */
47 
48 	SIOCSHIWAT,			/* set high watermark */
49 	SIOCGHIWAT,			/* get high watermark */
50 	SIOCSLOWAT,			/* set low watermark */
51 	SIOCGLOWAT,			/* get low watermark */
52 	SIOCATMARK,			/* at out-of-band mark? */
53 	SIOCSPGRP,			/* set process group */
54 	SIOCGPGRP			/* get process group */
55 };
56 
57 #endif	/* _SYS_SOCKIO_H */
58