1*9815SRishi.Srivatsavai@Sun.COM /* 2*9815SRishi.Srivatsavai@Sun.COM * CDDL HEADER START 3*9815SRishi.Srivatsavai@Sun.COM * 4*9815SRishi.Srivatsavai@Sun.COM * The contents of this file are subject to the terms of the 5*9815SRishi.Srivatsavai@Sun.COM * Common Development and Distribution License (the "License"). 6*9815SRishi.Srivatsavai@Sun.COM * You may not use this file except in compliance with the License. 7*9815SRishi.Srivatsavai@Sun.COM * 8*9815SRishi.Srivatsavai@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*9815SRishi.Srivatsavai@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*9815SRishi.Srivatsavai@Sun.COM * See the License for the specific language governing permissions 11*9815SRishi.Srivatsavai@Sun.COM * and limitations under the License. 12*9815SRishi.Srivatsavai@Sun.COM * 13*9815SRishi.Srivatsavai@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*9815SRishi.Srivatsavai@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*9815SRishi.Srivatsavai@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*9815SRishi.Srivatsavai@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*9815SRishi.Srivatsavai@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*9815SRishi.Srivatsavai@Sun.COM * 19*9815SRishi.Srivatsavai@Sun.COM * CDDL HEADER END 20*9815SRishi.Srivatsavai@Sun.COM */ 21*9815SRishi.Srivatsavai@Sun.COM /* 22*9815SRishi.Srivatsavai@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*9815SRishi.Srivatsavai@Sun.COM * Use is subject to license terms. 24*9815SRishi.Srivatsavai@Sun.COM */ 25*9815SRishi.Srivatsavai@Sun.COM 26*9815SRishi.Srivatsavai@Sun.COM #ifndef _LIBDLSIM_H 27*9815SRishi.Srivatsavai@Sun.COM #define _LIBDLSIM_H 28*9815SRishi.Srivatsavai@Sun.COM 29*9815SRishi.Srivatsavai@Sun.COM #include <sys/mac.h> 30*9815SRishi.Srivatsavai@Sun.COM #include <libdladm_impl.h> 31*9815SRishi.Srivatsavai@Sun.COM #include <net/simnet.h> 32*9815SRishi.Srivatsavai@Sun.COM 33*9815SRishi.Srivatsavai@Sun.COM #ifdef __cplusplus 34*9815SRishi.Srivatsavai@Sun.COM extern "C" { 35*9815SRishi.Srivatsavai@Sun.COM #endif 36*9815SRishi.Srivatsavai@Sun.COM 37*9815SRishi.Srivatsavai@Sun.COM typedef struct dladm_simnet_attr { 38*9815SRishi.Srivatsavai@Sun.COM datalink_id_t sna_link_id; 39*9815SRishi.Srivatsavai@Sun.COM datalink_id_t sna_peer_link_id; 40*9815SRishi.Srivatsavai@Sun.COM uchar_t sna_mac_addr[MAXMACADDRLEN]; 41*9815SRishi.Srivatsavai@Sun.COM uint_t sna_mac_len; 42*9815SRishi.Srivatsavai@Sun.COM uint_t sna_type; 43*9815SRishi.Srivatsavai@Sun.COM } dladm_simnet_attr_t; 44*9815SRishi.Srivatsavai@Sun.COM 45*9815SRishi.Srivatsavai@Sun.COM dladm_status_t dladm_simnet_create(dladm_handle_t, const char *, 46*9815SRishi.Srivatsavai@Sun.COM uint_t, uint32_t); 47*9815SRishi.Srivatsavai@Sun.COM dladm_status_t dladm_simnet_delete(dladm_handle_t, datalink_id_t, uint32_t); 48*9815SRishi.Srivatsavai@Sun.COM dladm_status_t dladm_simnet_modify(dladm_handle_t, datalink_id_t, 49*9815SRishi.Srivatsavai@Sun.COM datalink_id_t, uint32_t); 50*9815SRishi.Srivatsavai@Sun.COM dladm_status_t dladm_simnet_info(dladm_handle_t, datalink_id_t, 51*9815SRishi.Srivatsavai@Sun.COM dladm_simnet_attr_t *, uint32_t); 52*9815SRishi.Srivatsavai@Sun.COM dladm_status_t dladm_simnet_up(dladm_handle_t, datalink_id_t, uint32_t); 53*9815SRishi.Srivatsavai@Sun.COM 54*9815SRishi.Srivatsavai@Sun.COM #ifdef __cplusplus 55*9815SRishi.Srivatsavai@Sun.COM } 56*9815SRishi.Srivatsavai@Sun.COM #endif 57*9815SRishi.Srivatsavai@Sun.COM 58*9815SRishi.Srivatsavai@Sun.COM #endif /* _LIBDLSIM_H */ 59