/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _LIBDLETHER_H
#define _LIBDLETHER_H
#include <libdladm.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct dladm_ether_spdx_s {
int lesd_speed;
typedef struct dladm_ether_attr_s {
/*
* Supported PTYPE values
*/
#define CURRENT 0
/* Names of the lei_attr[] PTYPE slots for use in arrays */
typedef struct dladm_ether_info {
extern char *dladm_ether_autoneg2str(char *, size_t,
dladm_ether_info_t *, int);
extern char *dladm_ether_pause2str(char *, size_t,
dladm_ether_info_t *, int);
extern char *dladm_ether_spdx2str(char *, size_t,
dladm_ether_info_t *, int);
extern void dladm_ether_info_done(dladm_ether_info_t *);
extern dladm_status_t dladm_vsi_str2enc(const char *, int *);
#ifdef __cplusplus
}
#endif
#endif /* _LIBDLETHER_H */