libdlaggr.h revision 2
/*
* 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 _LIBDLAGGR_H
#define _LIBDLAGGR_H
/*
* This file includes structures, macros and routines used by aggregation link
* administration.
*/
#include <libdladm.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Modification flags sent with the LAIOC_MODIFY ioctl
*/
#define DLADM_AGGR_MODIFY_POLICY 0x01
#define DLADM_AGGR_MODIFY_MAC 0x02
#define DLADM_AGGR_MODIFY_LACP_MODE 0x04
#define DLADM_AGGR_MODIFY_LACP_TIMER 0x08
#define DLADM_AGGR_MODIFY_AGGR_MODE 0x10
typedef struct dladm_aggr_port_attr_db {
typedef struct dladm_aggr_port_attr {
typedef struct dladm_aggr_grp_attr {
uint32_t);
const uchar_t *, aggr_lacp_mode_t,
extern char *dladm_aggr_policy2str(uint32_t, char *);
uchar_t *);
extern const char *dladm_aggr_macaddr2str(const unsigned char *, char *);
extern boolean_t dladm_aggr_str2lacpmode(const char *,
aggr_lacp_mode_t *);
extern const char *dladm_aggr_lacpmode2str(aggr_lacp_mode_t, char *);
extern boolean_t dladm_aggr_str2lacptimer(const char *,
extern const char *dladm_aggr_lacptimer2str(aggr_lacp_timer_t, char *);
extern const char *dladm_aggr_portstate2str(aggr_port_state_t, char *);
datalink_id_t *, uint32_t);
#ifdef __cplusplus
}
#endif
#endif /* _LIBDLAGGR_H */