/*
* 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 _LIBLLDP_LLDPD_H
#define _LIBLLDP_LLDPD_H
/*
* Includes data structures and functions needed for library - lldpd
* interactions.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <lldp.h>
#include <liblldp.h>
#include <libscf.h>
#include <libscf_priv.h>
/*
* nvpair names which holds information.
*/
/*
* NOTE: Please maintain the order. All the Global properites should come
* before the agent properties.
*/
typedef enum lldp_proptype_e {
typedef struct lldp_val_desc {
char *lvd_name;
/*
* door commands to the lldpd daemon
*/
typedef enum {
typedef struct lldpd_door_arg_s {
int ld_cmd;
typedef struct lldpd_door_lstats_s {
int ld_cmd;
typedef struct lldpd_lstats_retval_s {
typedef struct lldpd_retval_s {
typedef union lldp_pval_u {
} lldp_pval_t;
typedef struct lldpd_door_lprops_s {
int lp_cmd;
typedef struct lldpd_gprops_retval_s {
int lpr_err;
typedef struct lldpd_vinfo_s {
int lvi_cmd;
int lvi_operation;
} lldp_vinfo_t;
typedef struct lldpd_door_minfo_s {
int ldm_cmd;
typedef struct lldpd_minfo_retval_s {
extern char *lldp_alloc_fmri(const char *, const char *);
datalink_id_t *, uint8_t *);
extern int lldp_create_nested_nvl(nvlist_t *, const char *,
const char *, const char *, nvlist_t **);
extern int lldp_get_nested_nvl(nvlist_t *, const char *,
const char *, const char *, nvlist_t **);
const char *, const char *, const char *);
extern int lldp_del_nested_nvl(nvlist_t *, const char *,
const char *, const char *);
extern char *lldp_ptype2pname(lldp_proptype_t);
#ifdef __cplusplus
}
#endif
#endif /* _LIBLLDP_LLDPD_H */