20 #define ETH_P_STP 0x4242 65 #define STP_PROTOCOL 0x0000 68 #define STP_VERSION_RSTP 0x02 71 #define STP_TYPE_RSTP 0x02 74 #define STP_FL_FORWARDING 0x20 struct stp_switch __attribute__((packed))
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint16_t protocol
Protocol ID.
uint32_t cost
Root path cost.
A Spanning Tree bridge protocol data unit.
uint8_t version
Protocol version.
struct stp_switch sender
Sender switch.
uint8_t control
LLC control field.
uint16_t delay
Forward delay.
uint8_t type
Message type.
uint8_t mac[ETH_ALEN]
MAC address.
struct stp_switch root
Root switch.
uint16_t priority
Priotity.
uint16_t hello
Hello time.