iPXE
Data Structures | Defines | Functions | Variables
stp.h File Reference

Spanning Tree Protocol (STP) More...

#include <stdint.h>
#include <ipxe/if_ether.h>

Go to the source code of this file.

Data Structures

struct  stp_switch
 A switch identifier. More...
struct  stp_bpdu
 A Spanning Tree bridge protocol data unit. More...

Defines

#define ETH_P_STP   0x4242
 "Protocol" value for STP
#define STP_PROTOCOL   0x0000
 Spanning Tree protocol ID.
#define STP_VERSION_RSTP   0x02
 Rapid Spanning Tree protocol version.
#define STP_TYPE_RSTP   0x02
 Rapid Spanning Tree bridge PDU type.
#define STP_FL_FORWARDING   0x20
 Port is forwarding.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
struct stp_switch __attribute__ ((packed))

Variables

uint16_t priority
 Priotity.
uint8_t mac [ETH_ALEN]
 MAC address.
uint8_t dsap
 LLC DSAP.
uint8_t ssap
 LLC SSAP.
uint8_t control
 LLC control field.
uint16_t protocol
 Protocol ID.
uint8_t version
 Protocol version.
uint8_t type
 Message type.
uint8_t flags
 Flags.
struct stp_switch root
 Root switch.
uint32_t cost
 Root path cost.
struct stp_switch sender
 Sender switch.
uint16_t port
 Port.
uint16_t age
 Message age.
uint16_t max
 Maximum age.
uint16_t hello
 Hello time.
uint16_t delay
 Forward delay.

Detailed Description

Spanning Tree Protocol (STP)

Definition in file stp.h.


Define Documentation

#define ETH_P_STP   0x4242

"Protocol" value for STP

This is the concatenated {DSAP,SSAP} value used internally by iPXE as the network-layer protocol for LLC frames.

Definition at line 20 of file stp.h.

#define STP_PROTOCOL   0x0000

Spanning Tree protocol ID.

Definition at line 65 of file stp.h.

Referenced by stp_rx().

#define STP_VERSION_RSTP   0x02

Rapid Spanning Tree protocol version.

Definition at line 68 of file stp.h.

Referenced by stp_rx().

#define STP_TYPE_RSTP   0x02

Rapid Spanning Tree bridge PDU type.

Definition at line 71 of file stp.h.

Referenced by stp_rx().

#define STP_FL_FORWARDING   0x20

Port is forwarding.

Definition at line 74 of file stp.h.

Referenced by stp_rx().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
struct stp_switch __attribute__ ( (packed)  )

Variable Documentation

Priotity.

Definition at line 30 of file stp.h.

Referenced by dhcp_discovery_rx(), fcoe_fip_rx_advertisement(), reprioritise_settings(), and vlan_create().

MAC address.

Definition at line 32 of file stp.h.

LLC DSAP.

Definition at line 64 of file stp.h.

LLC SSAP.

Definition at line 66 of file stp.h.

LLC control field.

Definition at line 68 of file stp.h.

Protocol ID.

Definition at line 70 of file stp.h.

Referenced by dbg_efi_protocols(), efi_local_open_volume(), register_usb(), undinet_transmit(), and xhci_port_protocol().

Protocol version.

Definition at line 72 of file stp.h.

Message type.

Definition at line 74 of file stp.h.

Flags.

Definition at line 76 of file stp.h.

struct stp_switch root

Root switch.

Definition at line 78 of file stp.h.

Referenced by efi_local_open_volume(), efipci_read(), efipci_root(), and efipci_write().

Root path cost.

Definition at line 80 of file stp.h.

Referenced by cipher_cost(), and digest_cost().

Sender switch.

Definition at line 82 of file stp.h.

Referenced by lotest_exec().

Port.

Definition at line 84 of file stp.h.

Message age.

Definition at line 86 of file stp.h.

Maximum age.

Definition at line 88 of file stp.h.

Hello time.

Definition at line 90 of file stp.h.

Referenced by stp_rx(), and tls_send_client_hello().

Forward delay.

Definition at line 92 of file stp.h.

Referenced by ath5k_hw_reset(), hunt_mcdi_request_poll(), and reg_delay().