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.
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.
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]
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
29 #include <sys/types.h>
31 #include <sys/dld_ioc.h>
37 /* Simnet IOCTL commands handled via DLD driver */
38 #define SIMNET_IOC_CREATE SIMNETIOC(1)
39 #define SIMNET_IOC_DELETE SIMNETIOC(2)
40 #define SIMNET_IOC_INFO SIMNETIOC(3)
41 #define SIMNET_IOC_MODIFY SIMNETIOC(4)
43 typedef struct simnet_ioc_create
{
44 datalink_id_t sic_link_id
;
45 uint_t sic_type
; /* DL_ETHER or DL_WiFi */
48 uchar_t sic_mac_addr
[MAXMACADDRLEN
];
49 } simnet_ioc_create_t
;
51 typedef struct simnet_ioc_delete
{
52 datalink_id_t sid_link_id
;
54 } simnet_ioc_delete_t
;
56 typedef struct simnet_ioc_info
{
57 datalink_id_t sii_link_id
;
58 datalink_id_t sii_peer_link_id
;
59 uint_t sii_type
; /* DL_ETHER or DL_WiFi */
62 uchar_t sii_mac_addr
[MAXMACADDRLEN
];
65 typedef struct simnet_ioc_modify
{
66 datalink_id_t sim_link_id
;
67 datalink_id_t sim_peer_link_id
;
69 } simnet_ioc_modify_t
;
75 #endif /* _SYS_SIMNET_H */