diff options
author | thompsa <thompsa@FreeBSD.org> | 2006-11-27 00:35:40 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2006-11-27 00:35:40 +0000 |
commit | 66955654aa682a306eccbcb98e5b6348a2d4c42d (patch) | |
tree | 7b48400cdbc7f90b6778963478fb4a368310b32c /sys/net/bridgestp.h | |
parent | 2b74709ded53782adf2b6728fd8d69dc9d019d48 (diff) | |
download | FreeBSD-src-66955654aa682a306eccbcb98e5b6348a2d4c42d.zip FreeBSD-src-66955654aa682a306eccbcb98e5b6348a2d4c42d.tar.gz |
Sync with the OpenBSD port of RSTP
- use flags rather than sperate ioctls for edge, p2p
- implement p2p and autop2p flags
- define large pathcost constant as ULL
- show bridgeid and rootid in ifconfig
Obtained from: Reyk Floeter <reyk@openbsd.org>
Diffstat (limited to 'sys/net/bridgestp.h')
-rw-r--r-- | sys/net/bridgestp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/bridgestp.h b/sys/net/bridgestp.h index 8e09cf9..9ebe354 100644 --- a/sys/net/bridgestp.h +++ b/sys/net/bridgestp.h @@ -108,6 +108,7 @@ #define BSTP_PORT_DISPUTED 0x0004 #define BSTP_PORT_ADMCOST 0x0008 #define BSTP_PORT_AUTOEDGE 0x0010 +#define BSTP_PORT_AUTOP2P 0x0020 /* BPDU priority */ #define BSTP_PDU_SUPERIOR 1 @@ -382,6 +383,8 @@ int bstp_set_port_priority(struct bstp_port *, int); int bstp_set_path_cost(struct bstp_port *, uint32_t); int bstp_set_edge(struct bstp_port *, int); int bstp_set_autoedge(struct bstp_port *, int); +int bstp_set_p2p(struct bstp_port *, int); +int bstp_set_autop2p(struct bstp_port *, int); struct mbuf *bstp_input(struct bstp_port *, struct ifnet *, struct mbuf *); #endif /* _KERNEL */ |