STP

Spanning Tree BPDUs are 802.3 frames (a length field instead of an EtherType) sent to 01:80:c2:00:00:00 with an LLC header 42-42-03. They have no network layer, and DataLink does not tell a length from an EtherType: a value up to 0x05DC lands in ethertype as an unknown value. Without a dedicated check they came out with L3/L4/L7 all None and no signal, so the pipeline validates the BPDU and labels the flow ApplicationProtocol::Stp ("STP") directly from the link layer (#4).

Frame 2173 of The-Ultimate-PCAP.pcapng, 32 bits per row: the bridge group address 01:80:c2:00:00:00, the source 00:0a:8a:a1:5a:9a, an 802.3 length field of 39 instead of an EtherType, the LLC header 42 42 03, then the BPDU: protocol identifier 0, version 2 (Rapid), type 0x02, flags 0x3c, root identifier 32768/1/00:0a:8a:a1:5a:80, path cost 0, the same bridge identifier, port 0x8042, and the four timers; BpduPacket exposes the identifiers, the version, the type and the typed body.

The check needs an Ethernet view (as_ethernet(), so an 802.3br express frame qualifies too), the bridge group address, a length field of at most 0x05DC that bounds LLC + BPDU (Ethernet padding beyond it is never parsed), the 42-42-03 header (which leaves out PVST+, carried in SNAP) and a BPDU that BpduPacket::try_from accepts. That decoder is public in parse::data_link::stp: it covers STP, RSTP and MSTP and fails with StpError. The flow itself only carries the label.