15895Syz147064 /* 25895Syz147064 * CDDL HEADER START 35895Syz147064 * 45895Syz147064 * The contents of this file are subject to the terms of the 55895Syz147064 * Common Development and Distribution License (the "License"). 65895Syz147064 * You may not use this file except in compliance with the License. 75895Syz147064 * 85895Syz147064 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95895Syz147064 * or http://www.opensolaris.org/os/licensing. 105895Syz147064 * See the License for the specific language governing permissions 115895Syz147064 * and limitations under the License. 125895Syz147064 * 135895Syz147064 * When distributing Covered Code, include this CDDL HEADER in each 145895Syz147064 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155895Syz147064 * If applicable, add the following below this CDDL HEADER, with the 165895Syz147064 * fields enclosed by brackets "[]" replaced with your own identifying 175895Syz147064 * information: Portions Copyright [yyyy] [name of copyright owner] 185895Syz147064 * 195895Syz147064 * CDDL HEADER END 205895Syz147064 */ 215895Syz147064 /* 225895Syz147064 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 235895Syz147064 * Use is subject to license terms. 245895Syz147064 */ 255895Syz147064 265895Syz147064 #ifndef _LIBDLVLAN_H 275895Syz147064 #define _LIBDLVLAN_H 285895Syz147064 295895Syz147064 /* 305895Syz147064 * This file includes structures, macros and routines used by VLAN link 315895Syz147064 * administration. 325895Syz147064 */ 335895Syz147064 345895Syz147064 #include <libdladm.h> 355895Syz147064 365895Syz147064 #ifdef __cplusplus 375895Syz147064 extern "C" { 385895Syz147064 #endif 395895Syz147064 405895Syz147064 typedef struct dladm_vlan_attr { 415895Syz147064 uint16_t dv_vid; 425895Syz147064 datalink_id_t dv_linkid; 435895Syz147064 boolean_t dv_force; 445895Syz147064 } dladm_vlan_attr_t; 455895Syz147064 46*8453SAnurag.Maskey@Sun.COM extern dladm_status_t dladm_vlan_info(dladm_handle_t, datalink_id_t, 47*8453SAnurag.Maskey@Sun.COM dladm_vlan_attr_t *, uint32_t); 48*8453SAnurag.Maskey@Sun.COM extern dladm_status_t dladm_vlan_create(dladm_handle_t, const char *, 49*8453SAnurag.Maskey@Sun.COM datalink_id_t, uint16_t, dladm_arg_list_t *, 50*8453SAnurag.Maskey@Sun.COM uint32_t, datalink_id_t *); 51*8453SAnurag.Maskey@Sun.COM extern dladm_status_t dladm_vlan_delete(dladm_handle_t, datalink_id_t, 525895Syz147064 uint32_t); 53*8453SAnurag.Maskey@Sun.COM extern dladm_status_t dladm_vlan_up(dladm_handle_t, datalink_id_t); 545895Syz147064 555895Syz147064 #ifdef __cplusplus 565895Syz147064 } 575895Syz147064 #endif 585895Syz147064 595895Syz147064 #endif /* _LIBDLVLAN_H */ 60