1d62bc4baSyz147064 /* 2d62bc4baSyz147064 * CDDL HEADER START 3d62bc4baSyz147064 * 4d62bc4baSyz147064 * The contents of this file are subject to the terms of the 5d62bc4baSyz147064 * Common Development and Distribution License (the "License"). 6d62bc4baSyz147064 * You may not use this file except in compliance with the License. 7d62bc4baSyz147064 * 8d62bc4baSyz147064 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d62bc4baSyz147064 * or http://www.opensolaris.org/os/licensing. 10d62bc4baSyz147064 * See the License for the specific language governing permissions 11d62bc4baSyz147064 * and limitations under the License. 12d62bc4baSyz147064 * 13d62bc4baSyz147064 * When distributing Covered Code, include this CDDL HEADER in each 14d62bc4baSyz147064 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d62bc4baSyz147064 * If applicable, add the following below this CDDL HEADER, with the 16d62bc4baSyz147064 * fields enclosed by brackets "[]" replaced with your own identifying 17d62bc4baSyz147064 * information: Portions Copyright [yyyy] [name of copyright owner] 18d62bc4baSyz147064 * 19d62bc4baSyz147064 * CDDL HEADER END 20d62bc4baSyz147064 */ 21d62bc4baSyz147064 /* 22d62bc4baSyz147064 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23d62bc4baSyz147064 * Use is subject to license terms. 24d62bc4baSyz147064 */ 25d62bc4baSyz147064 26d62bc4baSyz147064 #ifndef _LIBDLVLAN_H 27d62bc4baSyz147064 #define _LIBDLVLAN_H 28d62bc4baSyz147064 29d62bc4baSyz147064 /* 30d62bc4baSyz147064 * This file includes structures, macros and routines used by VLAN link 31d62bc4baSyz147064 * administration. 32d62bc4baSyz147064 */ 33d62bc4baSyz147064 34d62bc4baSyz147064 #include <libdladm.h> 35d62bc4baSyz147064 36d62bc4baSyz147064 #ifdef __cplusplus 37d62bc4baSyz147064 extern "C" { 38d62bc4baSyz147064 #endif 39d62bc4baSyz147064 40d62bc4baSyz147064 typedef struct dladm_vlan_attr { 41d62bc4baSyz147064 uint16_t dv_vid; 42d62bc4baSyz147064 datalink_id_t dv_linkid; 43d62bc4baSyz147064 boolean_t dv_force; 44d62bc4baSyz147064 } dladm_vlan_attr_t; 45d62bc4baSyz147064 46*4ac67f02SAnurag S. Maskey extern dladm_status_t dladm_vlan_info(dladm_handle_t, datalink_id_t, 47*4ac67f02SAnurag S. Maskey dladm_vlan_attr_t *, uint32_t); 48*4ac67f02SAnurag S. Maskey extern dladm_status_t dladm_vlan_create(dladm_handle_t, const char *, 49*4ac67f02SAnurag S. Maskey datalink_id_t, uint16_t, dladm_arg_list_t *, 50*4ac67f02SAnurag S. Maskey uint32_t, datalink_id_t *); 51*4ac67f02SAnurag S. Maskey extern dladm_status_t dladm_vlan_delete(dladm_handle_t, datalink_id_t, 52d62bc4baSyz147064 uint32_t); 53*4ac67f02SAnurag S. Maskey extern dladm_status_t dladm_vlan_up(dladm_handle_t, datalink_id_t); 54d62bc4baSyz147064 55d62bc4baSyz147064 #ifdef __cplusplus 56d62bc4baSyz147064 } 57d62bc4baSyz147064 #endif 58d62bc4baSyz147064 59d62bc4baSyz147064 #endif /* _LIBDLVLAN_H */ 60