Deleted Added
full compact
bridgestp.h (164880) bridgestp.h (165105)
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 164880 2006-12-04 14:45:02Z syrinx $
70 * $FreeBSD: head/sys/net/bridgestp.h 165105 2006-12-11 23:46:40Z thompsa $
71 */
72
73/*
74 * Data structure and control definitions for STP interfaces.
75 */
76
77#include <sys/callout.h>
78#include <sys/queue.h>

--- 24 unchanged lines hidden (view full) ---

103#ifdef _KERNEL
104
105/* STP port flags */
106#define BSTP_PORT_CANMIGRATE 0x0001
107#define BSTP_PORT_NEWINFO 0x0002
108#define BSTP_PORT_DISPUTED 0x0004
109#define BSTP_PORT_ADMCOST 0x0008
110#define BSTP_PORT_AUTOEDGE 0x0010
71 */
72
73/*
74 * Data structure and control definitions for STP interfaces.
75 */
76
77#include <sys/callout.h>
78#include <sys/queue.h>

--- 24 unchanged lines hidden (view full) ---

103#ifdef _KERNEL
104
105/* STP port flags */
106#define BSTP_PORT_CANMIGRATE 0x0001
107#define BSTP_PORT_NEWINFO 0x0002
108#define BSTP_PORT_DISPUTED 0x0004
109#define BSTP_PORT_ADMCOST 0x0008
110#define BSTP_PORT_AUTOEDGE 0x0010
111#define BSTP_PORT_AUTOP2P 0x0020
111#define BSTP_PORT_AUTOPTP 0x0020
112#define BSTP_PORT_ADMEDGE 0x0040
113
114/* BPDU priority */
115#define BSTP_PDU_SUPERIOR 1
116#define BSTP_PDU_REPEATED 2
117#define BSTP_PDU_INFERIOR 3
118#define BSTP_PDU_INFERIORALT 4
119#define BSTP_PDU_OTHER 5

--- 180 unchanged lines hidden (view full) ---

300 uint8_t bp_state;
301 uint8_t bp_tcstate;
302 uint8_t bp_role;
303 uint8_t bp_infois;
304 uint8_t bp_tc_ack;
305 uint8_t bp_tc_prop;
306 uint8_t bp_fdbflush;
307 uint8_t bp_priority;
112#define BSTP_PORT_ADMEDGE 0x0040
113
114/* BPDU priority */
115#define BSTP_PDU_SUPERIOR 1
116#define BSTP_PDU_REPEATED 2
117#define BSTP_PDU_INFERIOR 3
118#define BSTP_PDU_INFERIORALT 4
119#define BSTP_PDU_OTHER 5

--- 180 unchanged lines hidden (view full) ---

300 uint8_t bp_state;
301 uint8_t bp_tcstate;
302 uint8_t bp_role;
303 uint8_t bp_infois;
304 uint8_t bp_tc_ack;
305 uint8_t bp_tc_prop;
306 uint8_t bp_fdbflush;
307 uint8_t bp_priority;
308 uint8_t bp_p2p_link;
308 uint8_t bp_ptp_link;
309 uint8_t bp_agree;
310 uint8_t bp_agreed;
311 uint8_t bp_sync;
312 uint8_t bp_synced;
313 uint8_t bp_proposing;
314 uint8_t bp_proposed;
315 uint8_t bp_operedge;
316 uint8_t bp_reroot;

--- 62 unchanged lines hidden (view full) ---

379int bstp_set_maxage(struct bstp_state *, int);
380int bstp_set_holdcount(struct bstp_state *, int);
381int bstp_set_protocol(struct bstp_state *, int);
382int bstp_set_priority(struct bstp_state *, int);
383int bstp_set_port_priority(struct bstp_port *, int);
384int bstp_set_path_cost(struct bstp_port *, uint32_t);
385int bstp_set_edge(struct bstp_port *, int);
386int bstp_set_autoedge(struct bstp_port *, int);
309 uint8_t bp_agree;
310 uint8_t bp_agreed;
311 uint8_t bp_sync;
312 uint8_t bp_synced;
313 uint8_t bp_proposing;
314 uint8_t bp_proposed;
315 uint8_t bp_operedge;
316 uint8_t bp_reroot;

--- 62 unchanged lines hidden (view full) ---

379int bstp_set_maxage(struct bstp_state *, int);
380int bstp_set_holdcount(struct bstp_state *, int);
381int bstp_set_protocol(struct bstp_state *, int);
382int bstp_set_priority(struct bstp_state *, int);
383int bstp_set_port_priority(struct bstp_port *, int);
384int bstp_set_path_cost(struct bstp_port *, uint32_t);
385int bstp_set_edge(struct bstp_port *, int);
386int bstp_set_autoedge(struct bstp_port *, int);
387int bstp_set_p2p(struct bstp_port *, int);
388int bstp_set_autop2p(struct bstp_port *, int);
387int bstp_set_ptp(struct bstp_port *, int);
388int bstp_set_autoptp(struct bstp_port *, int);
389struct mbuf *bstp_input(struct bstp_port *, struct ifnet *, struct mbuf *);
390
391#endif /* _KERNEL */
389struct mbuf *bstp_input(struct bstp_port *, struct ifnet *, struct mbuf *);
390
391#endif /* _KERNEL */