libdlether.h revision 4784fcbddec533c366d5e92ce1ca3a4a2ce69495
/*
* 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
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#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
#define CAPABLE 1
#define ADV 2
#define PEERADV 3
/* Names of the lei_attr[] PTYPE slots for use in arrays */
typedef struct dladm_ether_info {
char lei_linkname[MAXLINKNAMELEN];
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 *);
#ifdef __cplusplus
}
#endif
#endif /* _LIBDLETHER_H */