bridgestp.h (164653) | bridgestp.h (164806) |
---|---|
1/* $NetBSD: if_bridgevar.h,v 1.4 2003/07/08 07:13:50 itojun Exp $ */ 2 3/* 4 * Copyright 2001 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 53 unchanged lines hidden (view full) --- 62 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 63 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 64 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 65 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 66 * POSSIBILITY OF SUCH DAMAGE. 67 * 68 * OpenBSD: if_bridge.h,v 1.14 2001/03/22 03:48:29 jason Exp 69 * | 1/* $NetBSD: if_bridgevar.h,v 1.4 2003/07/08 07:13:50 itojun Exp $ */ 2 3/* 4 * Copyright 2001 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 53 unchanged lines hidden (view full) --- 62 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 63 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 64 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 65 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 66 * POSSIBILITY OF SUCH DAMAGE. 67 * 68 * OpenBSD: if_bridge.h,v 1.14 2001/03/22 03:48:29 jason Exp 69 * |
70 * $FreeBSD: head/sys/net/bridgestp.h 164653 2006-11-27 00:35:40Z thompsa $ | 70 * $FreeBSD: head/sys/net/bridgestp.h 164806 2006-12-01 18:18:35Z imp $ |
71 */ 72 73/* 74 * Data structure and control definitions for STP interfaces. 75 */ 76 77#include <sys/callout.h> 78#include <sys/queue.h> --- 133 unchanged lines hidden (view full) --- 212 uint8_t cbu_bridgeaddr[6]; /* bridge address */ 213 214 uint16_t cbu_portid; /* port id */ 215 uint16_t cbu_messageage; /* current message age */ 216 uint16_t cbu_maxage; /* maximum age */ 217 uint16_t cbu_hellotime; /* hello time */ 218 uint16_t cbu_forwarddelay; /* forwarding delay */ 219 uint8_t cbu_versionlen; /* version 1 length */ | 71 */ 72 73/* 74 * Data structure and control definitions for STP interfaces. 75 */ 76 77#include <sys/callout.h> 78#include <sys/queue.h> --- 133 unchanged lines hidden (view full) --- 212 uint8_t cbu_bridgeaddr[6]; /* bridge address */ 213 214 uint16_t cbu_portid; /* port id */ 215 uint16_t cbu_messageage; /* current message age */ 216 uint16_t cbu_maxage; /* maximum age */ 217 uint16_t cbu_hellotime; /* hello time */ 218 uint16_t cbu_forwarddelay; /* forwarding delay */ 219 uint8_t cbu_versionlen; /* version 1 length */ |
220} __attribute__((__packed__)); | 220} __packed__; |
221#define BSTP_BPDU_STP_LEN (3 + 35) /* LLC + STP pdu */ 222#define BSTP_BPDU_RSTP_LEN (3 + 36) /* LLC + RSTP pdu */ 223 224/* topology change notification bridge protocol data unit */ 225struct bstp_tbpdu { 226 uint8_t tbu_dsap; /* LLC: destination sap */ 227 uint8_t tbu_ssap; /* LLC: source sap */ 228 uint8_t tbu_ctl; /* LLC: control */ 229 uint16_t tbu_protoid; /* protocol id */ 230 uint8_t tbu_protover; /* protocol version */ 231 uint8_t tbu_bpdutype; /* message type */ | 221#define BSTP_BPDU_STP_LEN (3 + 35) /* LLC + STP pdu */ 222#define BSTP_BPDU_RSTP_LEN (3 + 36) /* LLC + RSTP pdu */ 223 224/* topology change notification bridge protocol data unit */ 225struct bstp_tbpdu { 226 uint8_t tbu_dsap; /* LLC: destination sap */ 227 uint8_t tbu_ssap; /* LLC: source sap */ 228 uint8_t tbu_ctl; /* LLC: control */ 229 uint16_t tbu_protoid; /* protocol id */ 230 uint8_t tbu_protover; /* protocol version */ 231 uint8_t tbu_bpdutype; /* message type */ |
232} __attribute__((__packed__)); | 232} __packed; |
233 234/* 235 * Timekeeping structure used in spanning tree code. 236 */ 237struct bstp_timer { 238 int active; 239 int latched; 240 int value; --- 150 unchanged lines hidden --- | 233 234/* 235 * Timekeeping structure used in spanning tree code. 236 */ 237struct bstp_timer { 238 int active; 239 int latched; 240 int value; --- 150 unchanged lines hidden --- |