bridge.h revision 56a3cd3dcb3f5ee44668549e9ca623a435558fcd
/*
* 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 _NET_BRIDGE_H
#define _NET_BRIDGE_H
/*
* Private communication interface between bridging related daemons and kernel
* layer-two (Ethernet) bridging module.
*/
#include <sys/ethernet.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Specified by IEEE 802.1d */
/* The constant below is "BRG" in hex. */
#define _BRIOC(n) (0x42524700 + (n))
#define BRIDGE_CTL "bridgectl"
typedef struct bridge_newbridge_s {
typedef enum bridge_state_e {
BLS_BLOCKLISTEN, /* blocking or listening state */
BLS_LEARNING, /* learning state */
BLS_FORWARDING /* forwarding state */
typedef struct bridge_setstate_s {
typedef struct bridge_setpvid_s {
typedef struct bridge_vlanenab_s {
typedef struct bridge_flushfwd_s {
typedef struct bridge_listfwd_s {
/* Upward control messages */
typedef struct bridge_ctl_s {
} bridge_ctl_t;
/* GLDv3 control ioctls used by Bridging */
#ifdef __cplusplus
}
#endif
#endif /* _NET_BRIDGE_H */