libdlib.h revision c87dd6b73ce417a1c364f2b85436755e8e3ade21
/*
* 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 _LIBDLIB_H
#define _LIBDLIB_H
#ifdef __cplusplus
extern "C" {
#endif
#define MAXPKEYSTRSZ 968
#define MAXPKEYLEN 6
#define IBGUIDSTRLEN 16
#define IBPORTSTRLEN 5
#define DLADM_PART_FORCE_CREATE 0x1
typedef struct dladm_ib_attr_s {
int dia_instance; /* IP over IB driver instance number */
typedef struct dladm_ib_attr_s dladm_part_attr_t;
typedef enum {
DLADM_PART_UD_MODE = 0,
dladm_ib_attr_t *, uint32_t);
extern void dladm_free_ib_info(dladm_ib_attr_t *);
#ifdef __cplusplus
}
#endif
#endif /* _LIBDLIB_H */