Deleted Added
full compact
bridgestp.h (164626) bridgestp.h (164653)
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 164626 2006-11-26 18:43:48Z thompsa $
70 * $FreeBSD: head/sys/net/bridgestp.h 164653 2006-11-27 00:35: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
112/* BPDU priority */
113#define BSTP_PDU_SUPERIOR 1
114#define BSTP_PDU_REPEATED 2
115#define BSTP_PDU_INFERIOR 3
116#define BSTP_PDU_INFERIORALT 4
117#define BSTP_PDU_OTHER 5
118

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

377int bstp_set_maxage(struct bstp_state *, int);
378int bstp_set_holdcount(struct bstp_state *, int);
379int bstp_set_protocol(struct bstp_state *, int);
380int bstp_set_priority(struct bstp_state *, int);
381int bstp_set_port_priority(struct bstp_port *, int);
382int bstp_set_path_cost(struct bstp_port *, uint32_t);
383int bstp_set_edge(struct bstp_port *, int);
384int bstp_set_autoedge(struct bstp_port *, int);
112
113/* BPDU priority */
114#define BSTP_PDU_SUPERIOR 1
115#define BSTP_PDU_REPEATED 2
116#define BSTP_PDU_INFERIOR 3
117#define BSTP_PDU_INFERIORALT 4
118#define BSTP_PDU_OTHER 5
119

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

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