6 * Spanning Tree Protocol (STP)
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
13 #include <ipxe/if_ether.h>
15 /** "Protocol" value for STP
17 * This is the concatenated {DSAP,SSAP} value used internally by iPXE
18 * as the network-layer protocol for LLC frames.
20 #define ETH_P_STP 0x4242
22 /** A switch identifier */
27 uint8_t mac[ETH_ALEN];
28 } __attribute__ (( packed ));
30 /** A Spanning Tree bridge protocol data unit */
36 /** LLC control field */
40 /** Protocol version */
47 struct stp_switch root;
51 struct stp_switch sender;
62 } __attribute__ (( packed ));
64 /** Spanning Tree protocol ID */
65 #define STP_PROTOCOL 0x0000
67 /** Rapid Spanning Tree protocol version */
68 #define STP_VERSION_RSTP 0x02
70 /** Rapid Spanning Tree bridge PDU type */
71 #define STP_TYPE_RSTP 0x02
73 /** Port is forwarding */
74 #define STP_FL_FORWARDING 0x20
76 #endif /* _IPXE_STP_H */