3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23 */
24
25 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
26 /* All Rights Reserved */
27
28 /*
29 * University Copyright- Copyright (c) 1982, 1986, 1988
30 * The Regents of the University of California
31 * All Rights Reserved
32 *
33 * University Acknowledgment- Portions of this document are derived from
34 * software developed by the University of California, Berkeley, and its
35 * contributors.
36 */
37
38 #ifndef _SYS_SOCKIO_H
39 #define _SYS_SOCKIO_H
40
41 /*
42 * General socket ioctl definitions.
192 #define SIOCSLIFSUBNET _IOW('i', 137, struct lifreq) /* set subnet prefix */
193 #define SIOCGLIFSUBNET _IOWR('i', 138, struct lifreq) /* get subnet prefix */
194
195 #define SIOCSLIFLNKINFO _IOW('i', 139, struct lifreq) /* set link info */
196 #define SIOCGLIFLNKINFO _IOWR('i', 140, struct lifreq) /* get link info */
197
198 #define SIOCLIFDELND _IOW('i', 141, struct lifreq) /* Delete ND entry */
199 #define SIOCLIFGETND _IOWR('i', 142, struct lifreq) /* Get ND entry */
200 #define SIOCLIFSETND _IOW('i', 143, struct lifreq) /* Set ND entry */
201
202 /*
203 * Address querying ioctls.
204 */
205 #define SIOCTMYADDR _IOWR('i', 144, struct sioc_addrreq)
206 /* My address? */
207 #define SIOCTONLINK _IOWR('i', 145, struct sioc_addrreq)
208 /* Address on-link? */
209 #define SIOCTMYSITE _IOWR('i', 146, struct sioc_addrreq)
210 /* In this site? */
211
212 /* 147 and 148 were SIOC*TUNPARAM ioctls. Feel free to re-use. */
213
214 #define SIOCFIPSECONFIG _IOW('i', 149, 0) /* Flush Policy */
215 #define SIOCSIPSECONFIG _IOW('i', 150, 0) /* Set Policy */
216 #define SIOCDIPSECONFIG _IOW('i', 151, 0) /* Delete Policy */
217 #define SIOCLIPSECONFIG _IOW('i', 152, 0) /* List Policy */
218
219 /*
220 * 153 can be reused (was consolidation-private SIOCLIFFAILOVER).
221 */
222
223 /*
224 * IP Multipathing ioctls.
225 */
226 #define SIOCGLIFBINDING _IOWR('i', 154, struct lifreq)
227 #define SIOCSLIFGROUPNAME _IOW('i', 155, struct lifreq)
228 #define SIOCGLIFGROUPNAME _IOWR('i', 156, struct lifreq)
229 #define SIOCGLIFGROUPINFO _IOWR('i', 157, struct lifgroupinfo)
230
231 /*
232 * Leave 158 - 160 unused; used to be SIOC*IFARP ioctls.
233 * However, 161 can be reused (was consolidation-private SIOCSLIFOINDEX).
234 */
235
236 /*
237 * IOCTLS which provide an interface to the IPv6 address selection policy.
238 */
|
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2014, OmniTI Computer Consulting, Inc. All rights reserved.
24 */
25
26 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
27 /* All Rights Reserved */
28
29 /*
30 * University Copyright- Copyright (c) 1982, 1986, 1988
31 * The Regents of the University of California
32 * All Rights Reserved
33 *
34 * University Acknowledgment- Portions of this document are derived from
35 * software developed by the University of California, Berkeley, and its
36 * contributors.
37 */
38
39 #ifndef _SYS_SOCKIO_H
40 #define _SYS_SOCKIO_H
41
42 /*
43 * General socket ioctl definitions.
193 #define SIOCSLIFSUBNET _IOW('i', 137, struct lifreq) /* set subnet prefix */
194 #define SIOCGLIFSUBNET _IOWR('i', 138, struct lifreq) /* get subnet prefix */
195
196 #define SIOCSLIFLNKINFO _IOW('i', 139, struct lifreq) /* set link info */
197 #define SIOCGLIFLNKINFO _IOWR('i', 140, struct lifreq) /* get link info */
198
199 #define SIOCLIFDELND _IOW('i', 141, struct lifreq) /* Delete ND entry */
200 #define SIOCLIFGETND _IOWR('i', 142, struct lifreq) /* Get ND entry */
201 #define SIOCLIFSETND _IOW('i', 143, struct lifreq) /* Set ND entry */
202
203 /*
204 * Address querying ioctls.
205 */
206 #define SIOCTMYADDR _IOWR('i', 144, struct sioc_addrreq)
207 /* My address? */
208 #define SIOCTONLINK _IOWR('i', 145, struct sioc_addrreq)
209 /* Address on-link? */
210 #define SIOCTMYSITE _IOWR('i', 146, struct sioc_addrreq)
211 /* In this site? */
212
213 /* 147-152 were SIOC*{TUNPARAM,IPSECONFIG} ioctls. Feel free to re-use. */
214
215 /*
216 * 153 can be reused (was consolidation-private SIOCLIFFAILOVER).
217 */
218
219 /*
220 * IP Multipathing ioctls.
221 */
222 #define SIOCGLIFBINDING _IOWR('i', 154, struct lifreq)
223 #define SIOCSLIFGROUPNAME _IOW('i', 155, struct lifreq)
224 #define SIOCGLIFGROUPNAME _IOWR('i', 156, struct lifreq)
225 #define SIOCGLIFGROUPINFO _IOWR('i', 157, struct lifgroupinfo)
226
227 /*
228 * Leave 158 - 160 unused; used to be SIOC*IFARP ioctls.
229 * However, 161 can be reused (was consolidation-private SIOCSLIFOINDEX).
230 */
231
232 /*
233 * IOCTLS which provide an interface to the IPv6 address selection policy.
234 */
|