dls_impl.h revision 25ec3e3dd27cc1038c10efa18ed08f064eab5fbe
/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_DLS_IMPL_H
#define _SYS_DLS_IMPL_H
#include <sys/mac_provider.h>
#include <sys/mac_client.h>
#include <sys/mac_client_priv.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct dls_multicst_addr_s {
struct dls_link_s { /* Protected by */
};
typedef struct dls_head_s {
} dls_head_t;
extern mod_hash_t *i_dls_link_hash;
extern void dls_link_init(void);
extern int dls_link_fini(void);
extern int dls_link_hold(const char *, dls_link_t **);
extern int dls_link_hold_create(const char *, dls_link_t **);
extern void dls_link_rele(dls_link_t *);
extern int dls_link_rele_by_name(const char *);
extern int dls_link_getzid(const char *, zoneid_t *);
extern int dls_link_setzid(const char *, zoneid_t);
extern void i_dls_head_rele(dls_head_t *);
extern int dls_mac_active_set(dls_link_t *i);
extern void dls_mac_active_clear(dls_link_t *);
extern void dls_create_str_kstats(dld_str_t *);
extern int dls_stat_create(const char *, int, const char *,
kstat_t **);
dls_dl_handle_t *);
dls_link_t **);
extern void dls_init(void);
extern int dls_fini(void);
extern void dls_link_txloop(void *, mblk_t *);
dls_rx_t *, void **);
dls_rx_t *, void **);
extern void dls_rx_vlan_promisc(void *, mac_resource_handle_t,
extern int dls_active_set(dld_str_t *);
extern void dls_mgmt_init(void);
extern void dls_mgmt_fini(void);
extern bpf_attach_fn_t dls_bpfattach_fn;
extern bpf_detach_fn_t dls_bpfdetach_fn;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DLS_IMPL_H */