1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Spanning Tree Protocol (STP / RSTP, IEEE 802.1D / IEEE 802.1w) AST definitions.
//!
//! Defines Bridge Protocol Data Unit (BPDU) parameters for classic IEEE 802.1D Spanning Tree
//! Protocol (`Protocol Version = 0x00`, `BPDU Type = 0x00`) and IEEE 802.1w Rapid Spanning Tree
//! Protocol (`Protocol Version = 0x02`, `BPDU Type = 0x02`). STP frames are encapsulated in
//! IEEE 802.3 Ethernet frames addressed to the Bridge Group Address `01:80:C2:00:00:00` with
//! an IEEE 802.2 Logical Link Control (LLC) header (`DSAP = 0x42`, `SSAP = 0x42`, `Control = 0x03`)
//! and a 35-byte Configuration BPDU payload.
//!
//! Canonical `.fasm` syntax:
//! `a -> b [STP | RSTP] [ROOT_ID "<str>"] [BRIDGE_ID "<str>"] [PORT_ID <u16>] [COST <u32>] [MAX_AGE <u16>] [HELLO_TIME <u16>] [FORWARD_DELAY <u16>] [FLAGS <u8>]`
/// Spanning Tree Protocol (IEEE 802.1D / IEEE 802.1w) BPDU specification.
///
/// Syntax mapping: `[STP | RSTP] [ROOT_ID "<str>"] [BRIDGE_ID "<str>"] [PORT_ID <u16>] [COST <u32>] [MAX_AGE <u16>] [HELLO_TIME <u16>] [FORWARD_DELAY <u16>] [FLAGS <u8>]`