xref: /original-bsd/sys/sys/sockio.h (revision 406ea1fb)
1 /*-
2  * Copyright (c) 1982, 1986, 1990, 1993, 1994
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)sockio.h	8.1 (Berkeley) 03/28/94
8  */
9 
10 #ifndef	_SYS_SOCKIO_H_
11 #define	_SYS_SOCKIO_H_
12 
13 #include <sys/ioccom.h>
14 
15 /* Socket ioctl's. */
16 #define	SIOCSHIWAT	 _IOW('s',  0, int)		/* set high watermark */
17 #define	SIOCGHIWAT	 _IOR('s',  1, int)		/* get high watermark */
18 #define	SIOCSLOWAT	 _IOW('s',  2, int)		/* set low watermark */
19 #define	SIOCGLOWAT	 _IOR('s',  3, int)		/* get low watermark */
20 #define	SIOCATMARK	 _IOR('s',  7, int)		/* at oob mark? */
21 #define	SIOCSPGRP	 _IOW('s',  8, int)		/* set process group */
22 #define	SIOCGPGRP	 _IOR('s',  9, int)		/* get process group */
23 
24 #define	SIOCADDRT	 _IOW('r', 10, struct ortentry)	/* add route */
25 #define	SIOCDELRT	 _IOW('r', 11, struct ortentry)	/* delete route */
26 
27 #define	SIOCSIFADDR	 _IOW('i', 12, struct ifreq)	/* set ifnet address */
28 #define	OSIOCGIFADDR	_IOWR('i', 13, struct ifreq)	/* get ifnet address */
29 #define	SIOCGIFADDR	_IOWR('i', 33, struct ifreq)	/* get ifnet address */
30 #define	SIOCSIFDSTADDR	 _IOW('i', 14, struct ifreq)	/* set p-p address */
31 #define	OSIOCGIFDSTADDR	_IOWR('i', 15, struct ifreq)	/* get p-p address */
32 #define	SIOCGIFDSTADDR	_IOWR('i', 34, struct ifreq)	/* get p-p address */
33 #define	SIOCSIFFLAGS	 _IOW('i', 16, struct ifreq)	/* set ifnet flags */
34 #define	SIOCGIFFLAGS	_IOWR('i', 17, struct ifreq)	/* get ifnet flags */
35 #define	OSIOCGIFBRDADDR	_IOWR('i', 18, struct ifreq)	/* get broadcast addr */
36 #define	SIOCGIFBRDADDR	_IOWR('i', 35, struct ifreq)	/* get broadcast addr */
37 #define	SIOCSIFBRDADDR	 _IOW('i', 19, struct ifreq)	/* set broadcast addr */
38 #define	OSIOCGIFCONF	_IOWR('i', 20, struct ifconf)	/* get ifnet list */
39 #define	SIOCGIFCONF	_IOWR('i', 36, struct ifconf)	/* get ifnet list */
40 #define	OSIOCGIFNETMASK	_IOWR('i', 21, struct ifreq)	/* get net addr mask */
41 #define	SIOCGIFNETMASK	_IOWR('i', 37, struct ifreq)	/* get net addr mask */
42 #define	SIOCSIFNETMASK	 _IOW('i', 22, struct ifreq)	/* set net addr mask */
43 #define	SIOCGIFMETRIC	_IOWR('i', 23, struct ifreq)	/* get IF metric */
44 #define	SIOCSIFMETRIC	 _IOW('i', 24, struct ifreq)	/* set IF metric */
45 #define	SIOCDIFADDR	 _IOW('i', 25, struct ifreq)	/* delete IF addr */
46 #define	SIOCAIFADDR	 _IOW('i', 26, struct ifaliasreq)/* add/chg IF alias */
47 
48 #define	SIOCADDMULTI	 _IOW('i', 49, struct ifreq)	/* add m'cast addr */
49 #define	SIOCDELMULTI	 _IOW('i', 50, struct ifreq)	/* del m'cast addr */
50 
51 #endif /* !_SYS_SOCKIO_H_ */
52